Tricky Leafy Lush for shadcn/ui

Tricky Leafy Lush is a shadcn/ui theme built around a vivid deep green primary color (#046913) with light green accents (#b7e8bf). The light mode uses a green-tinted background (#f5f9f6). Dark mode switches to a deep green primary (#235834) on a green-tinted background (#0a0d0b).

Color palette

TokenLightDark
Background
#f5f9f6whitesmoke
#0a0d0bblack
Foreground
#046913darkgreen
#b9dac4silver
Card
#f5f9f6whitesmoke
#0a0d0bblack
Card foreground
#046913darkgreen
#b9dac4silver
Popover
#f5f9f6whitesmoke
#0a0d0bblack
Popover foreground
#000000black
#b9dac4silver
Primary
#046913darkgreen
#235834darkslategray
Primary foreground
#fffbf0floralwhite
#d0f7ddgainsboro
Secondary
#dde8b7palegoldenrod
#64be96mediumaquamarine
Secondary foreground
#362c2adarkslategray
#0b1913black
Muted
#edefefwhitesmoke
#1d2622black
Muted foreground
#000000black
#42614ddarkslategray
Accent
#b7e8bflightgrey
#6fb370darkseagreen
Accent foreground
#034f0fdarkgreen
#0b1913black
Destructive
#7b170amaroon
#b3220ffirebrick
Destructive foreground
#fac4bdlightpink
#d6c2c2silver
Border
#d2d4d4lightgrey
#212626darkslategray
Input
#d2d4d4lightgrey
#212626darkslategray
Ring
#034f0fdarkgreen
#b9dac4silver

Contrast

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

Light mode
Text on background6.52:1AA
Text on card6.51:1AA
Primary button6.69:1AA
Secondary button10.51:1AAA
Muted text18.19:1AAA
Accent7.18:1AAA
Destructive6.97:1AA
Dark mode
Text on background12.91:1AAA
Text on card12.91:1AAA
Primary button7.21:1AAA
Secondary button8.06:1AAA
Muted text2.25:1Fail
Accent7.21:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.006 153.781);
  --foreground: oklch(0.453 0.145 143.948);
  --muted: oklch(0.951 0.002 197.122);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(0.978 0.006 153.777);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.978 0.006 153.777);
  --card-foreground: oklch(0.453 0.145 143.948);
  --border: oklch(0.868 0.002 197.117);
  --input: oklch(0.868 0.002 197.117);
  --primary: oklch(0.453 0.145 143.948);
  --primary-foreground: oklch(0.988 0.015 90.232);
  --secondary: oklch(0.91 0.065 117.994);
  --secondary-foreground: oklch(0.303 0.015 31.224);
  --accent: oklch(0.886 0.075 149.48);
  --accent-foreground: oklch(0.372 0.117 144.424);
  --destructive: oklch(0.38 0.136 31.04);
  --destructive-foreground: oklch(0.866 0.063 27.09);
  --ring: oklch(0.372 0.117 144.424);
  --chart-1: oklch(0.882 0.167 138.699);
  --chart-2: oklch(0.781 0.097 246.035);
  --chart-3: oklch(0.762 0.175 333.485);
  --chart-4: oklch(0.854 0.099 79.259);
  --chart-5: oklch(0.678 0.034 137.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.006 156.364);
  --foreground: oklch(0.858 0.046 156.119);
  --muted: oklch(0.258 0.015 166.421);
  --muted-foreground: oklch(0.462 0.049 155.412);
  --popover: oklch(0.155 0.006 156.364);
  --popover-foreground: oklch(0.858 0.046 156.119);
  --card: oklch(0.155 0.006 156.364);
  --card-foreground: oklch(0.858 0.046 156.112);
  --border: oklch(0.264 0.007 200.586);
  --input: oklch(0.264 0.007 200.586);
  --primary: oklch(0.413 0.082 151.521);
  --primary-foreground: oklch(0.941 0.053 156.057);
  --secondary: oklch(0.735 0.106 162.791);
  --secondary-foreground: oklch(0.198 0.024 163.718);
  --accent: oklch(0.705 0.118 144.559);
  --accent-foreground: oklch(0.198 0.023 165.092);
  --destructive: oklch(0.497 0.183 31.001);
  --destructive-foreground: oklch(0.83 0.023 17.627);
  --ring: oklch(0.858 0.046 156.119);
  --chart-1: oklch(0.647 0.17 139.233);
  --chart-2: oklch(0.534 0.103 247.707);
  --chart-3: oklch(0.528 0.18 334.957);
  --chart-4: oklch(0.612 0.101 77.172);
  --chart-5: oklch(0.411 0.024 137.871);
}