Workforce is a shadcn/ui theme built around a light green primary color (#b9e4c5) with light teal accents (#b9e4da). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the light green primary (#b9e4c5) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #010402black |
| Foreground | #021206black | #f8fcf9mintcream |
| Card | #f3fcf5mintcream | #030704black |
| Card foreground | #020e05black | #fcfdfcwhite |
| Popover | #f7fdf9mintcream | #010402black |
| Popover foreground | #021206black | #f8fcf9mintcream |
| Primary | #b9e4c5lightgrey | #b9e4c5lightgrey |
| Primary foreground | #1e4d2bdarkslategray | #1e4d2bdarkslategray |
| Secondary | #c3e4b9lightgrey | #c3e4b9lightgrey |
| Secondary foreground | #294d1edarkslategray | #294d1edarkslategray |
| Muted | #dde0dcgainsboro | #20231fblack |
| Muted foreground | #3d4c39darkslategray | #b8c6b3silver |
| Accent | #b9e4dapowderblue | #b9e4dapowderblue |
| Accent foreground | #1e4d42darkslategray | #1e4d42darkslategray |
| Destructive | #650e0bmaroon | #e93f3atomato |
| Destructive foreground | #f6afaclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b9e4c5lightgrey | #b9e4c5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.63:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 8.86:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Workforce in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 154.379);
--foreground: oklch(0.163 0.036 152.338);
--muted: oklch(0.903 0.007 138.339);
--muted-foreground: oklch(0.397 0.036 138.443);
--popover: oklch(0.988 0.008 154.379);
--popover-foreground: oklch(0.163 0.036 152.338);
--card: oklch(0.982 0.012 154.302);
--card-foreground: oklch(0.145 0.031 153.312);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.88 0.062 153.217);
--primary-foreground: oklch(0.378 0.078 149.893);
--secondary: oklch(0.884 0.067 138.421);
--secondary-foreground: oklch(0.381 0.085 138.909);
--accent: oklch(0.885 0.046 179.399);
--accent-foreground: oklch(0.384 0.055 175.576);
--destructive: oklch(0.329 0.12 28.215);
--destructive-foreground: oklch(0.82 0.084 21.262);
--ring: oklch(0.88 0.062 153.217);
--chart-1: oklch(0.88 0.062 153.217);
--chart-2: oklch(0.884 0.067 138.421);
--chart-3: oklch(0.885 0.046 179.399);
--chart-4: oklch(0.902 0.056 138.402);
--chart-5: oklch(0.882 0.066 153.127);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.013 154.033);
--foreground: oklch(0.987 0.005 154.431);
--muted: oklch(0.253 0.01 138.373);
--muted-foreground: oklch(0.81 0.03 138.37);
--popover: oklch(0.097 0.013 154.033);
--popover-foreground: oklch(0.987 0.005 154.431);
--card: oklch(0.122 0.016 154.033);
--card-foreground: oklch(0.993 0.003 154.48);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.88 0.062 153.217);
--primary-foreground: oklch(0.378 0.078 149.893);
--secondary: oklch(0.884 0.067 138.421);
--secondary-foreground: oklch(0.381 0.085 138.909);
--accent: oklch(0.885 0.046 179.399);
--accent-foreground: oklch(0.384 0.055 175.576);
--destructive: oklch(0.621 0.207 27.153);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.88 0.062 153.217);
--chart-1: oklch(0.88 0.062 153.217);
--chart-2: oklch(0.884 0.067 138.421);
--chart-3: oklch(0.885 0.046 179.399);
--chart-4: oklch(0.902 0.056 138.402);
--chart-5: oklch(0.882 0.066 153.127);
}