Cookies is a shadcn/ui theme built around a neutral gray primary color (#b9b3bc) with neutral gray accents (#bcb3bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b9b3bc) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #000000black | #f8f6f9whitesmoke |
| Card | #fcfcfcsnow | #060208black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fcfcfcsnow | #060208black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #b9b3bcsilver | #b9b3bcsilver |
| Primary foreground | #1f1d20black | #1f1d20black |
| Secondary | #b4b3bcsilver | #b4b3bcsilver |
| Secondary foreground | #1d1d20black | #1d1d20black |
| Muted | #e3e2e9gainsboro | #17161dblack |
| Muted foreground | #494752darkslategray | #afadb8darkgray |
| Accent | #bcb3bbsilver | #bcb3bbsilver |
| Accent foreground | #201d20black | #201d20black |
| Destructive | #740701maroon | #fd3f35tomato |
| Destructive foreground | #feada9lightpink | #ffffffwhite |
| Border | #ebeaeblavender | #1f1d20black |
| Input | #ebeaeblavender | #1f1d20black |
| Ring | #b9b3bcsilver | #b9b3bcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Cookies in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.009 292.359);
--muted-foreground: oklch(0.404 0.018 291.699);
--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.938 0.002 313.59);
--input: oklch(0.938 0.002 313.59);
--primary: oklch(0.775 0.013 313.499);
--primary-foreground: oklch(0.234 0.008 313.402);
--secondary: oklch(0.771 0.012 292.247);
--secondary-foreground: oklch(0.232 0.007 291.969);
--accent: oklch(0.777 0.014 329.905);
--accent-foreground: oklch(0.235 0.008 330.103);
--destructive: oklch(0.355 0.14 30.075);
--destructive-foreground: oklch(0.825 0.096 22.677);
--ring: oklch(0.775 0.013 313.499);
--chart-1: oklch(0.775 0.013 313.499);
--chart-2: oklch(0.771 0.012 292.247);
--chart-3: oklch(0.777 0.014 329.905);
--chart-4: oklch(0.797 0.011 292.29);
--chart-5: oklch(0.772 0.02 313.445);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.082 0.019 315.578);
--foreground: oklch(0.975 0.005 313.573);
--muted: oklch(0.205 0.013 291.312);
--muted-foreground: oklch(0.753 0.015 292.161);
--popover: oklch(0.103 0.024 315.578);
--popover-foreground: oklch(0.983 0.003 313.584);
--card: oklch(0.103 0.024 315.578);
--card-foreground: oklch(0.983 0.003 313.584);
--border: oklch(0.235 0.005 313.47);
--input: oklch(0.235 0.005 313.47);
--primary: oklch(0.775 0.013 313.499);
--primary-foreground: oklch(0.234 0.008 313.402);
--secondary: oklch(0.771 0.012 292.247);
--secondary-foreground: oklch(0.232 0.007 291.969);
--accent: oklch(0.777 0.014 329.905);
--accent-foreground: oklch(0.235 0.008 330.103);
--destructive: oklch(0.654 0.227 28.304);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.775 0.013 313.499);
--chart-1: oklch(0.775 0.013 313.499);
--chart-2: oklch(0.771 0.012 292.247);
--chart-3: oklch(0.777 0.014 329.905);
--chart-4: oklch(0.797 0.011 292.29);
--chart-5: oklch(0.772 0.02 313.445);
}