Which is a shadcn/ui theme built around a neutral gray primary color (#e5e5e6) with neutral gray accents (#e5e6e5). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#e5e5e6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #020408black | #f6f7f8whitesmoke |
| Card | #f7f8fdghostwhite | #030303black |
| Card foreground | #010204black | #f9fafbghostwhite |
| Popover | #f7f8fdghostwhite | #030303black |
| Popover foreground | #010204black | #f9fafbghostwhite |
| Primary | #e5e5e6gainsboro | #e5e5e6gainsboro |
| Primary foreground | #4a4b4fdarkslategray | #4a4b4fdarkslategray |
| Secondary | #e6e5e5gainsboro | #e6e5e5gainsboro |
| Secondary foreground | #4f4a4bdarkslategray | #4f4a4bdarkslategray |
| Muted | #e5dcdegainsboro | #231a1cblack |
| Muted foreground | #4e3b40darkslategray | #c4b1b5silver |
| Accent | #e5e6e5gainsboro | #e5e6e5gainsboro |
| Accent foreground | #4b4f4adarkslategray | #4b4f4adarkslategray |
| Destructive | #74320bsaddlebrown | #e96a20chocolate |
| Destructive foreground | #f8d0b9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5e5e6gainsboro | #e5e5e6gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.91:1 | AA |
| Muted text | 7.69:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.91:1 | AA |
| Muted text | 8.34:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Which in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 271.377);
--foreground: oklch(0.103 0.016 263.274);
--muted: oklch(0.901 0.011 0.215);
--muted-foreground: oklch(0.376 0.028 1.907);
--popover: oklch(0.98 0.007 271.344);
--popover-foreground: oklch(0.082 0.013 263.274);
--card: oklch(0.98 0.007 271.344);
--card-foreground: oklch(0.082 0.013 263.274);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.922 0.002 271.393);
--primary-foreground: oklch(0.414 0.006 271.273);
--secondary: oklch(0.922 0.002 359.919);
--secondary-foreground: oklch(0.415 0.006 0.297);
--accent: oklch(0.924 0.002 137.767);
--accent-foreground: oklch(0.422 0.009 137.798);
--destructive: oklch(0.402 0.105 45.776);
--destructive-foreground: oklch(0.887 0.055 51.797);
--ring: oklch(0.922 0.002 271.393);
--chart-1: oklch(0.922 0.002 271.393);
--chart-2: oklch(0.922 0.002 359.919);
--chart-3: oklch(0.924 0.002 137.767);
--chart-4: oklch(0.946 0.001 359.902);
--chart-5: oklch(0.921 0.003 271.377);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.002 271.387);
--muted: oklch(0.229 0.016 1.787);
--muted-foreground: oklch(0.777 0.023 0.691);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.002 271.394);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 271.394);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.922 0.002 271.393);
--primary-foreground: oklch(0.414 0.006 271.273);
--secondary: oklch(0.922 0.002 359.919);
--secondary-foreground: oklch(0.415 0.006 0.297);
--accent: oklch(0.924 0.002 137.767);
--accent-foreground: oklch(0.422 0.009 137.798);
--destructive: oklch(0.669 0.176 45.534);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.922 0.002 271.393);
--chart-1: oklch(0.922 0.002 271.393);
--chart-2: oklch(0.922 0.002 359.919);
--chart-3: oklch(0.924 0.002 137.767);
--chart-4: oklch(0.946 0.001 359.902);
--chart-5: oklch(0.921 0.003 271.377);
}