Chocolate is a shadcn/ui theme built around a neutral gray primary color (#b7bdba) with neutral gray accents (#bdbab7). The light mode uses a neutral background (#fbfefc). Dark mode keeps the neutral gray primary (#b7bdba) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #020805black | #ffffffwhite |
| Card | #fbfefcwhite | #000000black |
| Card foreground | #020805black | #ffffffwhite |
| Popover | #fbfefcwhite | #000000black |
| Popover foreground | #020805black | #ffffffwhite |
| Primary | #b7bdbasilver | #b7bdbasilver |
| Primary foreground | #202221black | #202221black |
| Secondary | #bab7bdsilver | #bab7bdsilver |
| Secondary foreground | #212022black | #212022black |
| Muted | #ede8f3lavender | #120c17black |
| Muted foreground | #454149darkslategray | #bab6besilver |
| Accent | #bdbab7silver | #bdbab7silver |
| Accent foreground | #222120black | #222120black |
| Destructive | #9e3005saddlebrown | #f84f0dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b7bdbasilver | #b7bdbasilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 7.26:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 9.63:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Chocolate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 164.213);
--foreground: oklch(0.123 0.015 164.386);
--muted: oklch(0.937 0.016 307.592);
--muted-foreground: oklch(0.381 0.015 307.337);
--popover: oklch(0.994 0.003 164.213);
--popover-foreground: oklch(0.123 0.015 164.386);
--card: oklch(0.994 0.003 164.213);
--card-foreground: oklch(0.123 0.015 164.386);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.793 0.007 164.048);
--primary-foreground: oklch(0.251 0.005 163.8);
--secondary: oklch(0.785 0.008 307.666);
--secondary-foreground: oklch(0.245 0.005 307.537);
--accent: oklch(0.791 0.005 65.893);
--accent-foreground: oklch(0.249 0.003 65.814);
--destructive: oklch(0.472 0.153 37.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.793 0.007 164.048);
--chart-1: oklch(0.793 0.007 164.048);
--chart-2: oklch(0.785 0.008 307.666);
--chart-3: oklch(0.791 0.005 65.893);
--chart-4: oklch(0.809 0.007 307.684);
--chart-5: oklch(0.796 0.013 163.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.169 0.024 306.096);
--muted-foreground: oklch(0.782 0.012 307.605);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.793 0.007 164.048);
--primary-foreground: oklch(0.251 0.005 163.8);
--secondary: oklch(0.785 0.008 307.666);
--secondary-foreground: oklch(0.245 0.005 307.537);
--accent: oklch(0.791 0.005 65.893);
--accent-foreground: oklch(0.249 0.003 65.814);
--destructive: oklch(0.658 0.214 37.321);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.793 0.007 164.048);
--chart-1: oklch(0.793 0.007 164.048);
--chart-2: oklch(0.785 0.008 307.666);
--chart-3: oklch(0.791 0.005 65.893);
--chart-4: oklch(0.809 0.007 307.684);
--chart-5: oklch(0.796 0.013 163.869);
}