Chocolate is a shadcn/ui theme built around a muted teal primary color (#596963) with muted orange accents (#696359). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted teal primary (#596963) on a teal-tinted background (#050a08).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #050a08black |
| Foreground | #000000black | #fbfdfdwhite |
| Card | #f2fcf9mintcream | #070e0bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f2fcf9mintcream | #070e0bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #596963dimgray | #596963dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #635969dimgray | #635969dimgray |
| Secondary foreground | #faf9fasnow | #faf9fasnow |
| Muted | #dad2dfgainsboro | #28202ddarkslategray |
| Muted foreground | #59505edimgray | #aaa1afdarkgray |
| Accent | #696359dimgray | #696359dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #da2307firebrick | #f94a2ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #596963dimgray | #596963dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 5.81:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.23:1 | AA |
| Accent | 5.95:1 | AA |
| Destructive | 4.98:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.81:1 | AA |
| Secondary button | 6.31:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 5.95:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Chocolate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 172.349);
--foreground: oklch(0 0 0);
--muted: oklch(0.875 0.02 313.467);
--muted-foreground: oklch(0.444 0.025 313.262);
--popover: oklch(0.984 0.012 172.233);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.012 172.233);
--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.505 0.021 171.324);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.479 0.027 313.256);
--secondary-foreground: oklch(0.984 0.001 313.598);
--accent: oklch(0.502 0.017 81.459);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.569 0.217 31.133);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.021 171.324);
--chart-1: oklch(0.505 0.021 171.324);
--chart-2: oklch(0.479 0.027 313.256);
--chart-3: oklch(0.502 0.017 81.459);
--chart-4: oklch(0.506 0.029 313.253);
--chart-5: oklch(0.51 0.028 170.857);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.011 172.74);
--foreground: oklch(0.994 0.002 172.508);
--muted: oklch(0.258 0.027 312.968);
--muted-foreground: oklch(0.722 0.022 313.418);
--popover: oklch(0.153 0.012 171.069);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.012 171.069);
--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.505 0.021 171.324);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.479 0.027 313.256);
--secondary-foreground: oklch(0.984 0.001 313.598);
--accent: oklch(0.502 0.017 81.459);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.656 0.215 31.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.021 171.324);
--chart-1: oklch(0.505 0.021 171.324);
--chart-2: oklch(0.479 0.027 313.256);
--chart-3: oklch(0.502 0.017 81.459);
--chart-4: oklch(0.506 0.029 313.253);
--chart-5: oklch(0.51 0.028 170.857);
}