Confused Leafy Lush for shadcn/ui

Confused Leafy Lush is a shadcn/ui theme built around a deep green primary color (#126d17) with deep purple accents (#6d1268). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the deep green primary (#126d17) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#030703black
Foreground
#021203black
#ffffffwhite
Card
#f4fbf4whitesmoke
#040b05black
Card foreground
#020e02black
#ffffffwhite
Popover
#f4fbf4whitesmoke
#040b05black
Popover foreground
#020e02black
#ffffffwhite
Primary
#126d17darkgreen
#126d17darkgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6d1268purple
#6d1268purple
Secondary foreground
#f4bef1thistle
#f4bef1thistle
Muted
#f3f1f3whitesmoke
#0e0c0eblack
Muted foreground
#4d424ddarkslategray
#bdb2bdsilver
Accent
#6d1268purple
#6d1268purple
Accent foreground
#f4bef1thistle
#f4bef1thistle
Destructive
#70220amaroon
#d74114chocolate
Destructive foreground
#f8c4b4lightpink
#ffffffwhite
Border
#e6eae6gainsboro
#1e241eblack
Input
#e6eae6gainsboro
#1e241eblack
Ring
#126d17darkgreen
#126d17darkgreen

Contrast

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

Light mode
Text on background18.60:1AAA
Text on card18.69:1AAA
Primary button6.50:1AA
Secondary button6.94:1AA
Muted text8.50:1AAA
Accent6.94:1AA
Destructive7.04:1AAA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button6.50:1AA
Secondary button6.94:1AA
Muted text9.54:1AAA
Accent6.94:1AA
Destructive4.51:1AA

CSS variables

Paste this into your globals.css to use Confused Leafy Lush in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 146.965);
  --foreground: oklch(0.162 0.042 144.755);
  --muted: oklch(0.961 0.003 327.071);
  --muted-foreground: oklch(0.394 0.023 327.574);
  --popover: oklch(0.981 0.012 146.927);
  --popover-foreground: oklch(0.143 0.037 144.941);
  --card: oklch(0.981 0.012 146.927);
  --card-foreground: oklch(0.143 0.037 144.941);
  --border: oklch(0.933 0.007 146.97);
  --input: oklch(0.933 0.007 146.97);
  --primary: oklch(0.467 0.144 143.327);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.382 0.156 330.419);
  --secondary-foreground: oklch(0.865 0.091 327.966);
  --accent: oklch(0.382 0.156 330.419);
  --accent-foreground: oklch(0.865 0.091 327.966);
  --destructive: oklch(0.371 0.115 36.386);
  --destructive-foreground: oklch(0.863 0.064 37.594);
  --ring: oklch(0.467 0.144 143.327);
  --chart-1: oklch(0.467 0.144 143.327);
  --chart-2: oklch(0.382 0.156 330.419);
  --chart-3: oklch(0.382 0.156 330.419);
  --chart-4: oklch(0.413 0.17 330.454);
  --chart-5: oklch(0.472 0.148 143.244);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 145.953);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.156 0.005 327.346);
  --muted-foreground: oklch(0.776 0.02 327.272);
  --popover: oklch(0.138 0.02 145.947);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.02 145.947);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.253 0.014 146.523);
  --input: oklch(0.253 0.014 146.523);
  --primary: oklch(0.467 0.144 143.327);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.382 0.156 330.419);
  --secondary-foreground: oklch(0.865 0.091 327.966);
  --accent: oklch(0.382 0.156 330.419);
  --accent-foreground: oklch(0.865 0.091 327.966);
  --destructive: oklch(0.589 0.193 35.7);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.467 0.144 143.327);
  --chart-1: oklch(0.467 0.144 143.327);
  --chart-2: oklch(0.382 0.156 330.419);
  --chart-3: oklch(0.382 0.156 330.419);
  --chart-4: oklch(0.413 0.17 330.454);
  --chart-5: oklch(0.472 0.148 143.244);
}