Worker is a shadcn/ui theme built around a muted blue primary color (#7180a2) with muted blue accents (#b3bacc). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#7180a2) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030407black |
| Foreground | #000000black | #f4f6fawhitesmoke |
| Card | #fbfcfewhite | #030407black |
| Card foreground | #000000black | #f4f6fawhitesmoke |
| Popover | #fbfcfewhite | #030407black |
| Popover foreground | #000000black | #f4f6fawhitesmoke |
| Primary | #7180a2lightslategray | #7180a2lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cfd2d8lightgrey | #161717black |
| Secondary foreground | #353841darkslategray | #aeafb2darkgray |
| Muted | #dbdde1gainsboro | #1e2024black |
| Muted foreground | #595f6edimgray | #9197a6darkgray |
| Accent | #b3baccsilver | #23252adarkslategray |
| Accent foreground | #1f232edarkslategray | #babdc5silver |
| Destructive | #780202maroon | #fa1919red |
| Destructive foreground | #fdafaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7180a2lightslategray | #7180a2lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 3.95:1 | AA Large |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.67:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 3.95:1 | AA Large |
| Secondary button | 8.19:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Worker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 267.405);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.007 267.376);
--muted-foreground: oklch(0.486 0.026 267.027);
--popover: oklch(0.991 0.003 267.405);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 267.405);
--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.6 0.056 266.645);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.863 0.009 267.359);
--secondary-foreground: oklch(0.342 0.015 267.105);
--accent: oklch(0.789 0.027 267.191);
--accent-foreground: oklch(0.257 0.021 266.745);
--destructive: oklch(0.361 0.146 28.915);
--destructive-foreground: oklch(0.829 0.092 19.211);
--ring: oklch(0.6 0.056 266.645);
--chart-1: oklch(0.6 0.056 266.645);
--chart-2: oklch(0.863 0.009 267.359);
--chart-3: oklch(0.789 0.027 267.191);
--chart-4: oklch(0.888 0.007 267.372);
--chart-5: oklch(0.596 0.064 266.493);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.009 262.638);
--foreground: oklch(0.974 0.006 267.386);
--muted: oklch(0.243 0.009 267.154);
--muted-foreground: oklch(0.677 0.024 267.181);
--popover: oklch(0.109 0.009 262.638);
--popover-foreground: oklch(0.974 0.006 267.386);
--card: oklch(0.109 0.009 262.638);
--card-foreground: oklch(0.974 0.006 267.386);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.6 0.056 266.645);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.204 0.001 267.382);
--secondary-foreground: oklch(0.755 0.003 267.394);
--accent: oklch(0.264 0.009 267.175);
--accent-foreground: oklch(0.798 0.012 267.329);
--destructive: oklch(0.626 0.247 28.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.056 266.645);
--chart-1: oklch(0.6 0.056 266.645);
--chart-2: oklch(0.204 0.001 267.382);
--chart-3: oklch(0.264 0.009 267.175);
--chart-4: oklch(0.236 0.002 267.377);
--chart-5: oklch(0.596 0.064 266.493);
}