Workforce is a shadcn/ui theme built around a vivid light purple primary color (#fdc4ef) with vivid light cyan accents (#c4effd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#fdc4ef) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040103black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fdc4efmistyrose | #fdc4efmistyrose |
| Primary foreground | #89066apurple | #89066apurple |
| Secondary | #effdc4lightgoldenrodyellow | #effdc4lightgoldenrodyellow |
| Secondary foreground | #1e2702black | #1e2702black |
| Muted | #e5e6e0gainsboro | #1e1f19black |
| Muted foreground | #666a58dimgray | #a3a795darkgray |
| Accent | #c4effdpaleturquoise | #c4effdpaleturquoise |
| Accent foreground | #021e27black | #021e27black |
| Destructive | #891c01darkred | #fe3806orangered |
| Destructive foreground | #ffcabdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdc4efmistyrose | #fdc4efmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 14.46:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 14.09:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 14.46:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 14.09:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Workforce in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.02 334.087);
--muted: oklch(0.923 0.009 117.257);
--muted-foreground: oklch(0.514 0.027 118.031);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.085 334.711);
--primary-foreground: oklch(0.426 0.18 341.413);
--secondary: oklch(0.969 0.074 118.467);
--secondary-foreground: oklch(0.256 0.06 121.871);
--accent: oklch(0.927 0.048 218.214);
--accent-foreground: oklch(0.22 0.038 221.472);
--destructive: oklch(0.412 0.148 33.847);
--destructive-foreground: oklch(0.882 0.063 34.399);
--ring: oklch(0.884 0.085 334.711);
--chart-1: oklch(0.884 0.085 334.711);
--chart-2: oklch(0.969 0.074 118.467);
--chart-3: oklch(0.927 0.048 218.214);
--chart-4: oklch(0.976 0.056 118.112);
--chart-5: oklch(0.883 0.087 334.758);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 333.268);
--muted: oklch(0.237 0.013 118.046);
--muted-foreground: oklch(0.72 0.025 117.706);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.085 334.711);
--primary-foreground: oklch(0.426 0.18 341.413);
--secondary: oklch(0.969 0.074 118.467);
--secondary-foreground: oklch(0.256 0.06 121.871);
--accent: oklch(0.927 0.048 218.214);
--accent-foreground: oklch(0.22 0.038 221.472);
--destructive: oklch(0.648 0.237 32.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.085 334.711);
--chart-1: oklch(0.884 0.085 334.711);
--chart-2: oklch(0.969 0.074 118.467);
--chart-3: oklch(0.927 0.048 218.214);
--chart-4: oklch(0.976 0.056 118.112);
--chart-5: oklch(0.883 0.087 334.758);
}