Willowy Moselle Green for shadcn/ui

Willowy Moselle Green is a shadcn/ui theme built around a muted deep green primary color (#324d37) with neutral gray accents (#e5e6e5). The light mode uses a neutral background (#f6fdf8). Dark mode keeps the muted deep green primary (#324d37) on a green-tinted background (#040b05).

Color palette

TokenLightDark
Background
#f6fdf8mintcream
#040b05black
Foreground
#041006black
#fcfdfcwhite
Card
#f2fcf4honeydew
#050f07black
Card foreground
#030c05black
#ffffffwhite
Popover
#f6fdf8mintcream
#040b05black
Popover foreground
#041006black
#fcfdfcwhite
Primary
#324d37darkslategray
#324d37darkslategray
Primary foreground
#d1e1d4lightgrey
#d1e1d4lightgrey
Secondary
#e5e6e5gainsboro
#181b19black
Secondary foreground
#4a4f4bdarkslategray
#afb6b1darkgray
Muted
#eef2eewhitesmoke
#0d110eblack
Muted foreground
#3f4a41darkslategray
#b5c0b7silver
Accent
#e5e6e5gainsboro
#181b19black
Accent foreground
#4a4f4bdarkslategray
#afb6b1darkgray
Destructive
#740901maroon
#ed1202red
Destructive foreground
#feafa9lightpink
#ffffffwhite
Border
#e9ede9linen
#1e241fblack
Input
#e9ede9linen
#1e241fblack
Ring
#324d37darkslategray
#324d37darkslategray

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.96:1AAA
Primary button6.83:1AA
Secondary button6.69:1AA
Muted text8.17:1AAA
Accent6.69:1AA
Destructive6.68:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.47:1AAA
Primary button6.83:1AA
Secondary button8.41:1AAA
Muted text10.11:1AAA
Accent8.41:1AAA
Destructive4.46:1AA Large

CSS variables

Paste this into your globals.css to use Willowy Moselle Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 151.258);
  --foreground: oklch(0.158 0.03 149.705);
  --muted: oklch(0.956 0.006 151.317);
  --muted-foreground: oklch(0.398 0.021 150.638);
  --popover: oklch(0.988 0.01 151.258);
  --popover-foreground: oklch(0.158 0.03 149.705);
  --card: oklch(0.983 0.015 151.181);
  --card-foreground: oklch(0.141 0.026 150.273);
  --border: oklch(0.941 0.006 151.313);
  --input: oklch(0.941 0.006 151.313);
  --primary: oklch(0.392 0.049 149.42);
  --primary-foreground: oklch(0.893 0.025 151.005);
  --secondary: oklch(0.924 0.002 151.371);
  --secondary-foreground: oklch(0.421 0.009 151.115);
  --accent: oklch(0.924 0.002 151.371);
  --accent-foreground: oklch(0.421 0.009 151.115);
  --destructive: oklch(0.356 0.139 30.414);
  --destructive-foreground: oklch(0.828 0.094 23.826);
  --ring: oklch(0.392 0.049 149.42);
  --chart-1: oklch(0.392 0.049 149.42);
  --chart-2: oklch(0.924 0.002 151.371);
  --chart-3: oklch(0.924 0.002 151.371);
  --chart-4: oklch(0.947 0.002 151.383);
  --chart-5: oklch(0.396 0.056 149.142);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.02 150.583);
  --foreground: oklch(0.993 0.002 151.382);
  --muted: oklch(0.173 0.009 150.623);
  --muted-foreground: oklch(0.796 0.017 151.09);
  --popover: oklch(0.139 0.02 150.583);
  --popover-foreground: oklch(0.993 0.002 151.382);
  --card: oklch(0.155 0.023 150.09);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.254 0.014 150.594);
  --input: oklch(0.254 0.014 150.594);
  --primary: oklch(0.392 0.049 149.42);
  --primary-foreground: oklch(0.893 0.025 151.005);
  --secondary: oklch(0.217 0.004 151.109);
  --secondary-foreground: oklch(0.769 0.01 151.224);
  --accent: oklch(0.217 0.004 151.109);
  --accent-foreground: oklch(0.769 0.01 151.224);
  --destructive: oklch(0.599 0.24 29.797);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.392 0.049 149.42);
  --chart-1: oklch(0.392 0.049 149.42);
  --chart-2: oklch(0.217 0.004 151.109);
  --chart-3: oklch(0.217 0.004 151.109);
  --chart-4: oklch(0.25 0.006 151.083);
  --chart-5: oklch(0.396 0.056 149.142);
}