βui - Zenburn for shadcn/ui

βui - Zenburn is a shadcn/ui theme built around a yellow primary color (#b58e21) with neutral gray accents (#5e5e5e). The light mode uses a neutral background (#383838). Dark mode keeps the yellow primary (#b58e21) on a neutral background (#383838).

Color palette

TokenLightDark
Background
#383838darkslategray
#383838darkslategray
Foreground
#dededegainsboro
#dededegainsboro
Card
#333333darkslategray
#333333darkslategray
Card foreground
#ebebeblinen
#ebebeblinen
Popover
#303030darkslategray
#303030darkslategray
Popover foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Primary
#b58e21darkgoldenrod
#b58e21darkgoldenrod
Primary foreground
#090702black
#090702black
Secondary
#53492ddarkolivegreen
#53492ddarkolivegreen
Secondary foreground
#e4decdgainsboro
#e4decdgainsboro
Muted
#4a3a3adarkslategray
#4a3a3adarkslategray
Muted foreground
#c9babasilver
#c9babasilver
Accent
#5e5e5edimgray
#5e5e5edimgray
Accent foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Destructive
#d81b18crimson
#d81b18crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#454545darkslategray
#454545darkslategray
Input
#4d4d4ddarkslategray
#4d4d4ddarkslategray
Ring
#b58e21darkgoldenrod
#b58e21darkgoldenrod

Contrast

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

Light mode
Text on background8.70:1AAA
Text on card10.59:1AAA
Primary button6.55:1AA
Secondary button6.65:1AA
Muted text5.70:1AA
Accent6.02:1AA
Destructive5.14:1AA
Dark mode
Text on background8.70:1AAA
Text on card10.59:1AAA
Primary button6.55:1AA
Secondary button6.65:1AA
Muted text5.70:1AA
Accent6.02:1AA
Destructive5.14:1AA

CSS variables

Paste this into your globals.css to use βui - Zenburn in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.341 0 158.199);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.367 0.023 18.229);
  --muted-foreground: oklch(0.803 0.017 17.506);
  --popover: oklch(0.311 0 180);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.321 0 180);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.39 0 165.964);
  --input: oklch(0.418 0 173.29);
  --primary: oklch(0.665 0.126 86.926);
  --primary-foreground: oklch(0.127 0.018 96.232);
  --secondary: oklch(0.407 0.045 90.254);
  --secondary-foreground: oklch(0.901 0.024 90.298);
  --accent: oklch(0.483 0 180);
  --accent-foreground: oklch(0.977 0 180);
  --destructive: oklch(0.562 0.218 28.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.126 86.926);
  --chart-1: oklch(0.665 0.126 86.926);
  --chart-2: oklch(0.407 0.045 90.254);
  --chart-3: oklch(0.483 0 180);
  --chart-4: oklch(0.439 0.049 90.237);
  --chart-5: oklch(0.671 0.129 86.538);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.341 0 158.199);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.367 0.023 18.229);
  --muted-foreground: oklch(0.803 0.017 17.506);
  --popover: oklch(0.311 0 180);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.321 0 180);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.39 0 165.964);
  --input: oklch(0.418 0 173.29);
  --primary: oklch(0.665 0.126 86.926);
  --primary-foreground: oklch(0.127 0.018 96.232);
  --secondary: oklch(0.407 0.045 90.254);
  --secondary-foreground: oklch(0.901 0.024 90.298);
  --accent: oklch(0.483 0 180);
  --accent-foreground: oklch(0.977 0 180);
  --destructive: oklch(0.562 0.218 28.512);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.665 0.126 86.926);
  --chart-1: oklch(0.665 0.126 86.926);
  --chart-2: oklch(0.407 0.045 90.254);
  --chart-3: oklch(0.483 0 180);
  --chart-4: oklch(0.439 0.049 90.237);
  --chart-5: oklch(0.671 0.129 86.538);
}