Brunch for shadcn/ui

Brunch is a shadcn/ui theme built around a muted green primary color (#c6c9ac) with muted purple accents (#c9acc6). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#c6c9ac) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#0b0c03black
#fdfdfcwhite
Card
#fcfcf8snow
#030303black
Card foreground
#080802black
#ffffffwhite
Popover
#fcfcf8snow
#030303black
Popover foreground
#080802black
#ffffffwhite
Primary
#c6c9acsilver
#c6c9acsilver
Primary foreground
#27281ablack
#27281ablack
Secondary
#acc6c9lightsteelblue
#acc6c9lightsteelblue
Secondary foreground
#1a2728darkslategray
#1a2728darkslategray
Muted
#e0eef0lavender
#0f1d1fblack
Muted foreground
#4d5656darkslategray
#a9b1b2darkgray
Accent
#c9acc6silver
#c9acc6silver
Accent foreground
#281a27black
#281a27black
Destructive
#8a1200darkred
#ff3819orangered
Destructive foreground
#ffc6bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6c9acsilver
#c6c9acsilver

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.54:1AAA
Primary button8.76:1AAA
Secondary button8.56:1AAA
Muted text6.36:1AA
Accent8.02:1AAA
Destructive6.49:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button8.76:1AAA
Secondary button8.56:1AAA
Muted text7.89:1AAA
Accent8.02:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 110.306);
  --foreground: oklch(0.15 0.021 112.018);
  --muted: oklch(0.94 0.015 203.441);
  --muted-foreground: oklch(0.444 0.011 203.363);
  --popover: oklch(0.99 0.006 110.366);
  --popover-foreground: oklch(0.131 0.018 111.757);
  --card: oklch(0.99 0.006 110.366);
  --card-foreground: oklch(0.131 0.018 111.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.825 0.039 111.125);
  --primary-foreground: oklch(0.272 0.024 111.89);
  --secondary: oklch(0.808 0.029 203.294);
  --secondary-foreground: oklch(0.261 0.018 203.144);
  --accent: oklch(0.777 0.049 328.704);
  --accent-foreground: oklch(0.242 0.031 329.34);
  --destructive: oklch(0.406 0.155 31.73);
  --destructive-foreground: oklch(0.874 0.067 28.524);
  --ring: oklch(0.825 0.039 111.125);
  --chart-1: oklch(0.825 0.039 111.125);
  --chart-2: oklch(0.808 0.029 203.294);
  --chart-3: oklch(0.777 0.049 328.704);
  --chart-4: oklch(0.83 0.026 203.327);
  --chart-5: oklch(0.83 0.045 111.238);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 110.286);
  --muted: oklch(0.22 0.019 203.123);
  --muted-foreground: oklch(0.755 0.01 203.461);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.825 0.039 111.125);
  --primary-foreground: oklch(0.272 0.024 111.89);
  --secondary: oklch(0.808 0.029 203.294);
  --secondary-foreground: oklch(0.261 0.018 203.144);
  --accent: oklch(0.777 0.049 328.704);
  --accent-foreground: oklch(0.242 0.031 329.34);
  --destructive: oklch(0.651 0.236 31.524);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.039 111.125);
  --chart-1: oklch(0.825 0.039 111.125);
  --chart-2: oklch(0.808 0.029 203.294);
  --chart-3: oklch(0.777 0.049 328.704);
  --chart-4: oklch(0.83 0.026 203.327);
  --chart-5: oklch(0.83 0.045 111.238);
}