Broccoli for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button8.05:1AAA
Secondary button8.03:1AAA
Muted text5.66:1AA
Accent8.09:1AAA
Destructive6.78:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.05:1AAA
Secondary button8.03:1AAA
Muted text6.53:1AA
Accent8.09:1AAA
Destructive3.54:1AA Large

CSS variables

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);
}