Broccoli is a shadcn/ui theme built around a muted deep green primary color (#243328) with muted deep orange accents (#332824). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the muted deep green primary (#243328) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #000000black |
| Foreground | #020903black | #ffffffwhite |
| Card | #f8fcf9mintcream | #000000black |
| Card foreground | #020903black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #000000black |
| Popover foreground | #020903black | #ffffffwhite |
| Primary | #243328darkslategray | #243328darkslategray |
| Primary foreground | #bacec0silver | #bacec0silver |
| Secondary | #282433darkslategray | #282433darkslategray |
| Secondary foreground | #c0bacesilver | #c0bacesilver |
| Muted | #efeef1whitesmoke | #0f0e11black |
| Muted foreground | #605b6bdimgray | #9894a4darkgray |
| Accent | #332824darkslategray | #332824darkslategray |
| Accent foreground | #cec0basilver | #cec0basilver |
| Destructive | #871508darkred | #f34c39tomato |
| Destructive foreground | #fccbc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #243328darkslategray | #243328darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Broccoli in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 154.405);
--foreground: oklch(0.124 0.023 153.808);
--muted: oklch(0.951 0.005 298.482);
--muted-foreground: oklch(0.483 0.026 297.63);
--popover: oklch(0.987 0.007 154.405);
--popover-foreground: oklch(0.124 0.023 153.808);
--card: oklch(0.987 0.007 154.405);
--card-foreground: oklch(0.124 0.023 153.808);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.303 0.028 152.785);
--primary-foreground: oklch(0.833 0.03 153.886);
--secondary: oklch(0.271 0.027 296.757);
--secondary-foreground: oklch(0.801 0.028 297.946);
--accent: oklch(0.287 0.018 40.962);
--accent-foreground: oklch(0.817 0.018 41.146);
--destructive: oklch(0.402 0.15 30.547);
--destructive-foreground: oklch(0.882 0.056 25.641);
--ring: oklch(0.303 0.028 152.785);
--chart-1: oklch(0.303 0.028 152.785);
--chart-2: oklch(0.271 0.027 296.757);
--chart-3: oklch(0.287 0.018 40.962);
--chart-4: oklch(0.299 0.032 296.679);
--chart-5: oklch(0.306 0.032 152.478);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.007 297.808);
--muted-foreground: oklch(0.674 0.024 297.952);
--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.303 0.028 152.785);
--primary-foreground: oklch(0.833 0.03 153.886);
--secondary: oklch(0.271 0.027 296.757);
--secondary-foreground: oklch(0.801 0.028 297.946);
--accent: oklch(0.287 0.018 40.962);
--accent-foreground: oklch(0.817 0.018 41.146);
--destructive: oklch(0.651 0.207 29.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.303 0.028 152.785);
--chart-1: oklch(0.303 0.028 152.785);
--chart-2: oklch(0.271 0.027 296.757);
--chart-3: oklch(0.287 0.018 40.962);
--chart-4: oklch(0.299 0.032 296.679);
--chart-5: oklch(0.306 0.032 152.478);
}