Workplace is a shadcn/ui theme built around a red primary color (#7d3f40) with indigo accents (#3f407d). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#7d3f40) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #040101black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fefbfbsnow | #040101black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #040101black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #7d3f40sienna | #7d3f40sienna |
| Primary foreground | #faf5f5whitesmoke | #faf5f5whitesmoke |
| Secondary | #407d3fdarkolivegreen | #407d3fdarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d0e7d0gainsboro | #192f18black |
| Muted foreground | #4b634bdarkolivegreen | #9db49cdarkseagreen |
| Accent | #3f407ddarkslateblue | #3f407ddarkslateblue |
| Accent foreground | #f5f5fawhitesmoke | #f5f5fawhitesmoke |
| Destructive | #691107maroon | #f13722orangered |
| Destructive foreground | #f9b1a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d3f40sienna | #7d3f40sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 4.94:1 | AA |
| Muted text | 5.02:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 4.94:1 | AA |
| Muted text | 6.45:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Workplace in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 16.015);
--foreground: oklch(0.08 0.018 20.307);
--muted: oklch(0.904 0.039 144.794);
--muted-foreground: oklch(0.472 0.048 144.355);
--popover: oklch(0.991 0.002 16.015);
--popover-foreground: oklch(0.08 0.018 20.307);
--card: oklch(0.991 0.002 16.015);
--card-foreground: oklch(0.08 0.018 20.307);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.447 0.086 20.085);
--primary-foreground: oklch(0.974 0.005 16.072);
--secondary: oklch(0.534 0.113 143.466);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.101 280.133);
--accent-foreground: oklch(0.971 0.007 285.495);
--destructive: oklch(0.34 0.124 30.615);
--destructive-foreground: oklch(0.826 0.086 26.181);
--ring: oklch(0.447 0.086 20.085);
--chart-1: oklch(0.447 0.086 20.085);
--chart-2: oklch(0.534 0.113 143.466);
--chart-3: oklch(0.404 0.101 280.133);
--chart-4: oklch(0.565 0.121 143.453);
--chart-5: oklch(0.446 0.094 20.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.013 18.611);
--foreground: oklch(0.991 0.002 16.009);
--muted: oklch(0.28 0.05 143.744);
--muted-foreground: oklch(0.746 0.043 144.684);
--popover: oklch(0.083 0.013 18.611);
--popover-foreground: oklch(0.991 0.002 16.009);
--card: oklch(0.083 0.013 18.611);
--card-foreground: oklch(0.991 0.002 16.009);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.447 0.086 20.085);
--primary-foreground: oklch(0.974 0.005 16.072);
--secondary: oklch(0.534 0.113 143.466);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.101 280.133);
--accent-foreground: oklch(0.971 0.007 285.495);
--destructive: oklch(0.626 0.224 30.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.447 0.086 20.085);
--chart-1: oklch(0.447 0.086 20.085);
--chart-2: oklch(0.534 0.113 143.466);
--chart-3: oklch(0.404 0.101 280.133);
--chart-4: oklch(0.565 0.121 143.453);
--chart-5: oklch(0.446 0.094 20.576);
}