Herbs for shadcn/ui

Herbs is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d8caca). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0a0505black
Foreground
#170303black
#f9f6f6whitesmoke
Card
#faf5f5whitesmoke
#0d0707black
Card foreground
#120202black
#fbf9f9snow
Popover
#fcf8f8snow
#0a0505black
Popover foreground
#170303black
#f9f6f6whitesmoke
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d8cacalightgrey
#251818black
Secondary foreground
#413030darkslategray
#c6a9a9darkgray
Muted
#e8dedegainsboro
#211717black
Muted foreground
#4c3e3edarkslategray
#c1b3b3silver
Accent
#d8cacalightgrey
#251818black
Accent foreground
#413030darkslategray
#c6a9a9darkgray
Destructive
#b63807firebrick
#e74808orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.75:1AAA
Primary button7.37:1AAA
Secondary button7.83:1AAA
Muted text7.70:1AAA
Accent7.83:1AAA
Destructive5.88:1AA
Dark mode
Text on background18.81:1AAA
Text on card19.03:1AAA
Primary button7.37:1AAA
Secondary button7.87:1AAA
Muted text8.63:1AAA
Accent7.87:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.218);
  --foreground: oklch(0.14 0.041 24.084);
  --muted: oklch(0.908 0.011 17.36);
  --muted-foreground: oklch(0.378 0.019 18.036);
  --popover: oklch(0.982 0.004 17.218);
  --popover-foreground: oklch(0.14 0.041 24.084);
  --card: oklch(0.974 0.005 17.25);
  --card-foreground: oklch(0.127 0.036 23.78);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.851 0.015 17.46);
  --secondary-foreground: oklch(0.327 0.025 18.495);
  --accent: oklch(0.851 0.015 17.46);
  --accent-foreground: oklch(0.327 0.025 18.495);
  --destructive: oklch(0.523 0.17 37.451);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.851 0.015 17.46);
  --chart-3: oklch(0.851 0.015 17.46);
  --chart-4: oklch(0.876 0.013 17.399);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.01 18.604);
  --foreground: oklch(0.975 0.003 17.202);
  --muted: oklch(0.217 0.016 18.495);
  --muted-foreground: oklch(0.779 0.016 17.496);
  --popover: oklch(0.126 0.01 18.604);
  --popover-foreground: oklch(0.975 0.003 17.202);
  --card: oklch(0.139 0.012 18.667);
  --card-foreground: oklch(0.984 0.002 17.187);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.227 0.02 18.723);
  --secondary-foreground: oklch(0.761 0.033 17.91);
  --accent: oklch(0.227 0.02 18.723);
  --accent-foreground: oklch(0.761 0.033 17.91);
  --destructive: oklch(0.623 0.205 37.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.227 0.02 18.723);
  --chart-3: oklch(0.227 0.02 18.723);
  --chart-4: oklch(0.257 0.024 18.85);
  --chart-5: oklch(0 0 0);
}