Brocolli for shadcn/ui

Brocolli is a shadcn/ui theme built around a deep red primary color (#18070a) with neutral gray accents (#e0dcdd). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the deep red primary (#18070a) on a red-tinted background (#0c0405).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0c0405black
Foreground
#0d0305black
#ffffffwhite
Card
#fdf7f8snow
#0c0405black
Card foreground
#0d0305black
#ffffffwhite
Popover
#fdf7f8snow
#0c0405black
Popover foreground
#0d0305black
#ffffffwhite
Primary
#18070ablack
#18070ablack
Primary foreground
#da778bpalevioletred
#da778bpalevioletred
Secondary
#e0dcddgainsboro
#302c2ddarkslategray
Secondary foreground
#484143darkslategray
#cac4c5silver
Muted
#e3d9dbgainsboro
#261c1eblack
Muted foreground
#705c60dimgray
#a38f93rosybrown
Accent
#e0dcddgainsboro
#302c2ddarkslategray
Accent foreground
#484143darkslategray
#cac4c5silver
Destructive
#7f2c0bsaddlebrown
#ec5c22chocolate
Destructive foreground
#fad2c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#18070ablack
#18070ablack

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.52:1AA
Secondary button7.31:1AAA
Muted text4.48:1AA Large
Accent7.31:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button6.52:1AA
Secondary button8.04:1AAA
Muted text5.44:1AA
Accent8.04:1AAA
Destructive6.09:1AA

CSS variables

Paste this into your globals.css to use Brocolli in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 3.357);
  --foreground: oklch(0.118 0.025 3.796);
  --muted: oklch(0.893 0.011 3.523);
  --muted-foreground: oklch(0.496 0.027 4.639);
  --popover: oklch(0.981 0.006 3.357);
  --popover-foreground: oklch(0.118 0.025 3.796);
  --card: oklch(0.981 0.006 3.357);
  --card-foreground: oklch(0.118 0.025 3.796);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.157 0.032 7.691);
  --primary-foreground: oklch(0.684 0.124 8.136);
  --secondary: oklch(0.898 0.004 3.296);
  --secondary-foreground: oklch(0.384 0.01 3.857);
  --accent: oklch(0.898 0.004 3.296);
  --accent-foreground: oklch(0.384 0.01 3.857);
  --destructive: oklch(0.411 0.122 39.141);
  --destructive-foreground: oklch(0.893 0.05 42.728);
  --ring: oklch(0.157 0.032 7.691);
  --chart-1: oklch(0.157 0.032 7.691);
  --chart-2: oklch(0.898 0.004 3.296);
  --chart-3: oklch(0.898 0.004 3.296);
  --chart-4: oklch(0.922 0.003 3.268);
  --chart-5: oklch(0.157 0.034 7.809);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.02 3.579);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.016 4.943);
  --muted-foreground: oklch(0.669 0.025 4.182);
  --popover: oklch(0.121 0.02 3.579);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.02 3.579);
  --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.157 0.032 7.691);
  --primary-foreground: oklch(0.684 0.124 8.136);
  --secondary: oklch(0.297 0.007 3.804);
  --secondary-foreground: oklch(0.825 0.006 3.395);
  --accent: oklch(0.297 0.007 3.804);
  --accent-foreground: oklch(0.825 0.006 3.395);
  --destructive: oklch(0.654 0.19 39.458);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.157 0.032 7.691);
  --chart-1: oklch(0.157 0.032 7.691);
  --chart-2: oklch(0.297 0.007 3.804);
  --chart-3: oklch(0.297 0.007 3.804);
  --chart-4: oklch(0.327 0.008 3.825);
  --chart-5: oklch(0.157 0.034 7.809);
}