co is a shadcn/ui theme built around a neutral gray primary color (#4a494b) with neutral gray accents (#4b494b). The light mode uses a neutral background (#faf7fd). Dark mode keeps the neutral gray primary (#4a494b) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #050307black |
| Foreground | #030104black | #fcfcfdwhite |
| Card | #faf7fdghostwhite | #050307black |
| Card foreground | #030104black | #fcfcfdwhite |
| Popover | #faf7fdghostwhite | #050307black |
| Popover foreground | #030104black | #fcfcfdwhite |
| Primary | #4a494bdarkslategray | #4a494bdarkslategray |
| Primary foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Secondary | #49494bdarkslategray | #49494bdarkslategray |
| Secondary foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Muted | #dcdce5gainsboro | #1a1a23black |
| Muted foreground | #434257darkslategray | #a9a8bddarkgray |
| Accent | #4b494bdarkslategray | #4b494bdarkslategray |
| Accent foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Destructive | #712e09saddlebrown | #ec5f13chocolate |
| Destructive foreground | #f9ccb4peachpuff | #000000black |
| Border | #e8e6ealavender | #1f1c21black |
| Input | #e8e6ealavender | #1f1c21black |
| Ring | #4a494bdarkslategray | #4a494bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 6.84:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 7.43:1 | AAA |
| Accent | 6.94:1 | AA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use co in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.009 309.698);
--foreground: oklch(0.078 0.023 312.025);
--muted: oklch(0.896 0.013 287.664);
--muted-foreground: oklch(0.388 0.036 286.111);
--popover: oklch(0.98 0.009 309.698);
--popover-foreground: oklch(0.078 0.023 312.025);
--card: oklch(0.98 0.009 309.698);
--card-foreground: oklch(0.078 0.023 312.025);
--border: oklch(0.928 0.005 309.728);
--input: oklch(0.928 0.005 309.728);
--primary: oklch(0.407 0.003 309.721);
--primary-foreground: oklch(0.915 0.001 309.776);
--secondary: oklch(0.407 0.002 287.829);
--secondary-foreground: oklch(0.915 0.001 287.924);
--accent: oklch(0.408 0.003 326.605);
--accent-foreground: oklch(0.915 0.001 326.55);
--destructive: oklch(0.39 0.106 44.047);
--destructive-foreground: oklch(0.877 0.061 49.841);
--ring: oklch(0.407 0.003 309.721);
--chart-1: oklch(0.407 0.003 309.721);
--chart-2: oklch(0.407 0.002 287.829);
--chart-3: oklch(0.408 0.003 326.605);
--chart-4: oklch(0.435 0.003 287.827);
--chart-5: oklch(0.403 0.011 309.525);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.014 310.799);
--foreground: oklch(0.991 0.002 309.768);
--muted: oklch(0.221 0.019 286.265);
--muted-foreground: oklch(0.738 0.031 287.154);
--popover: oklch(0.108 0.014 310.799);
--popover-foreground: oklch(0.991 0.002 309.768);
--card: oklch(0.108 0.014 310.799);
--card-foreground: oklch(0.991 0.002 309.768);
--border: oklch(0.232 0.01 309.357);
--input: oklch(0.232 0.01 309.357);
--primary: oklch(0.407 0.003 309.721);
--primary-foreground: oklch(0.915 0.001 309.776);
--secondary: oklch(0.407 0.002 287.829);
--secondary-foreground: oklch(0.915 0.001 287.924);
--accent: oklch(0.408 0.003 326.605);
--accent-foreground: oklch(0.915 0.001 326.55);
--destructive: oklch(0.658 0.19 42.579);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.407 0.003 309.721);
--chart-1: oklch(0.407 0.003 309.721);
--chart-2: oklch(0.407 0.002 287.829);
--chart-3: oklch(0.408 0.003 326.605);
--chart-4: oklch(0.435 0.003 287.827);
--chart-5: oklch(0.403 0.011 309.525);
}