Cacao is a shadcn/ui theme built around a vivid light purple primary color (#f5a3f4) with vivid light green accents (#a3f5a4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#f5a3f4) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070307black |
| Foreground | #110311black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0b050bblack |
| Card foreground | #0d020dblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b050bblack |
| Popover foreground | #0d020dblack | #ffffffwhite |
| Primary | #f5a3f4plum | #f5a3f4plum |
| Primary foreground | #5c0a5bindigo | #5c0a5bindigo |
| Secondary | #a3f5a4palegreen | #a3f5a4palegreen |
| Secondary foreground | #0a5c0bdarkgreen | #0a5c0bdarkgreen |
| Muted | #d3e8d4gainsboro | #172c17black |
| Muted foreground | #575c57dimgray | #a3a8a3darkgray |
| Accent | #a3f5a4palegreen | #a3f5a4palegreen |
| Accent foreground | #0a5c0bdarkgreen | #0a5c0bdarkgreen |
| Destructive | #bc4306firebrick | #f85e12orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5a3f4plum | #f5a3f4plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.09:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 5.30:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 5.34:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 6.18:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Cacao in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.138 0.041 328.076);
--muted: oklch(0.911 0.036 145.727);
--muted-foreground: oklch(0.468 0.011 145.865);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.123 0.036 327.965);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.036 327.965);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.822 0.142 327.339);
--primary-foreground: oklch(0.339 0.145 328.99);
--secondary: oklch(0.898 0.136 144.714);
--secondary-foreground: oklch(0.414 0.133 142.824);
--accent: oklch(0.898 0.136 144.714);
--accent-foreground: oklch(0.414 0.133 142.824);
--destructive: oklch(0.545 0.167 40.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.822 0.142 327.339);
--chart-1: oklch(0.822 0.142 327.339);
--chart-2: oklch(0.898 0.136 144.714);
--chart-3: oklch(0.898 0.136 144.714);
--chart-4: oklch(0.912 0.116 144.941);
--chart-5: oklch(0.822 0.147 327.381);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.018 327.165);
--foreground: oklch(0.992 0.002 326.072);
--muted: oklch(0.268 0.047 144.486);
--muted-foreground: oklch(0.727 0.01 145.946);
--popover: oklch(0.127 0.021 327.184);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.021 327.184);
--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.822 0.142 327.339);
--primary-foreground: oklch(0.339 0.145 328.99);
--secondary: oklch(0.898 0.136 144.714);
--secondary-foreground: oklch(0.414 0.133 142.824);
--accent: oklch(0.898 0.136 144.714);
--accent-foreground: oklch(0.414 0.133 142.824);
--destructive: oklch(0.675 0.202 41);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.822 0.142 327.339);
--chart-1: oklch(0.822 0.142 327.339);
--chart-2: oklch(0.898 0.136 144.714);
--chart-3: oklch(0.898 0.136 144.714);
--chart-4: oklch(0.912 0.116 144.941);
--chart-5: oklch(0.822 0.147 327.381);
}