Workplace is a shadcn/ui theme built around a violet primary color (#6d1fdb) with muted light violet accents (#dad2e5). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#6d1fdb) on a violet-tinted background (#0a070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #0a070eblack |
| Foreground | #090212black | #faf9fbghostwhite |
| Card | #faf8fcghostwhite | #0c0811black |
| Card foreground | #07020eblack | #fcfcfdwhite |
| Popover | #fcfbfewhite | #0a070eblack |
| Popover foreground | #090212black | #faf9fbghostwhite |
| Primary | #6d1fdbblueviolet | #6d1fdbblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eae7eflavender | #2a2432darkslategray |
| Secondary foreground | #4f4162darkslategray | #c3bbcesilver |
| Muted | #dad2e4gainsboro | #221b2dblack |
| Muted foreground | #4b4554darkslategray | #b1abbadarkgray |
| Accent | #dad2e5gainsboro | #382e48darkslategray |
| Accent foreground | #3f3154darkslategray | #d2caddthistle |
| Destructive | #c64110firebrick | #ed5821chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d1fdbblueviolet | #6d1fdbblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Workplace in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 305.001);
--foreground: oklch(0.119 0.043 304.488);
--muted: oklch(0.876 0.026 304.643);
--muted-foreground: oklch(0.402 0.027 304.131);
--popover: oklch(0.99 0.003 305.001);
--popover-foreground: oklch(0.119 0.043 304.488);
--card: oklch(0.981 0.006 304.957);
--card-foreground: oklch(0.107 0.038 306.264);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.486 0.249 293.001);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.932 0.011 304.874);
--secondary-foreground: oklch(0.404 0.056 303.083);
--accent: oklch(0.876 0.027 304.626);
--accent-foreground: oklch(0.345 0.061 302.491);
--destructive: oklch(0.56 0.178 37.366);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.249 293.001);
--chart-1: oklch(0.486 0.249 293.001);
--chart-2: oklch(0.932 0.011 304.874);
--chart-3: oklch(0.876 0.027 304.626);
--chart-4: oklch(0.957 0.007 304.942);
--chart-5: oklch(0.487 0.255 292.27);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.017 304.686);
--foreground: oklch(0.984 0.002 305.019);
--muted: oklch(0.239 0.035 302.968);
--muted-foreground: oklch(0.751 0.023 304.627);
--popover: oklch(0.135 0.017 304.686);
--popover-foreground: oklch(0.984 0.002 305.019);
--card: oklch(0.146 0.019 303.417);
--card-foreground: oklch(0.992 0.001 305.032);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.486 0.249 293.001);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.275 0.026 303.705);
--secondary-foreground: oklch(0.804 0.027 304.574);
--accent: oklch(0.324 0.047 302.993);
--accent-foreground: oklch(0.852 0.027 304.599);
--destructive: oklch(0.651 0.195 38.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.486 0.249 293.001);
--chart-1: oklch(0.486 0.249 293.001);
--chart-2: oklch(0.275 0.026 303.705);
--chart-3: oklch(0.324 0.047 302.993);
--chart-4: oklch(0.303 0.03 303.649);
--chart-5: oklch(0.487 0.255 292.27);
}