Vegetation for shadcn/ui

Vegetation is a shadcn/ui theme built around a deep green primary color (#1d7317) with muted light green accents (#b8d2b6). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the deep green primary (#1d7317) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#030703black
Foreground
#051104black
#ffffffwhite
Card
#f9fbf8mintcream
#050b05black
Card foreground
#030d03black
#ffffffwhite
Popover
#f9fbf8mintcream
#050b05black
Popover foreground
#030d03black
#ffffffwhite
Primary
#1d7317forestgreen
#1d7317forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cedbcdlightgrey
#222c21darkslategray
Secondary foreground
#334431darkslategray
#b8c8b6silver
Muted
#dce0dcgainsboro
#1f231fblack
Muted foreground
#434743darkslategray
#b8bcb8silver
Accent
#b8d2b6silver
#324b30darkslategray
Accent foreground
#223621darkslategray
#cedfcdlightgrey
Destructive
#991905darkred
#f83d20orangered
Destructive foreground
#fed8d2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d7317forestgreen
#1d7317forestgreen

Contrast

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

Light mode
Text on background18.93:1AAA
Text on card19.03:1AAA
Primary button5.97:1AA
Secondary button7.24:1AAA
Muted text7.09:1AAA
Accent8.02:1AAA
Destructive6.38:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button5.97:1AA
Secondary button8.29:1AAA
Muted text8.24:1AAA
Accent6.93:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 143.622);
  --foreground: oklch(0.159 0.035 141.801);
  --muted: oklch(0.903 0.008 143.59);
  --muted-foreground: oklch(0.393 0.009 143.521);
  --popover: oklch(0.986 0.005 143.609);
  --popover-foreground: oklch(0.142 0.031 141.705);
  --card: oklch(0.986 0.005 143.609);
  --card-foreground: oklch(0.142 0.031 141.705);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.487 0.149 142.127);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.876 0.023 143.494);
  --secondary-foreground: oklch(0.366 0.039 143.059);
  --accent: oklch(0.838 0.048 143.33);
  --accent-foreground: oklch(0.309 0.044 142.85);
  --destructive: oklch(0.441 0.166 31.437);
  --destructive-foreground: oklch(0.913 0.043 28.243);
  --ring: oklch(0.487 0.149 142.127);
  --chart-1: oklch(0.487 0.149 142.127);
  --chart-2: oklch(0.876 0.023 143.494);
  --chart-3: oklch(0.838 0.048 143.33);
  --chart-4: oklch(0.898 0.019 143.523);
  --chart-5: oklch(0.492 0.153 142.126);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.017 142.395);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.252 0.011 143.41);
  --muted-foreground: oklch(0.792 0.007 143.588);
  --popover: oklch(0.138 0.02 142.398);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.02 142.398);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.487 0.149 142.127);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.278 0.024 143.173);
  --secondary-foreground: oklch(0.816 0.031 143.436);
  --accent: oklch(0.383 0.054 142.859);
  --accent-foreground: oklch(0.887 0.03 143.455);
  --destructive: oklch(0.643 0.226 31.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.487 0.149 142.127);
  --chart-1: oklch(0.487 0.149 142.127);
  --chart-2: oklch(0.278 0.024 143.173);
  --chart-3: oklch(0.383 0.054 142.859);
  --chart-4: oklch(0.311 0.028 143.152);
  --chart-5: oklch(0.492 0.153 142.126);
}