Biodegradable for shadcn/ui

Biodegradable is a shadcn/ui theme built around a deep green primary color (#25653c) with deep orange accents (#653c25). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#25653c) on a green-tinted background (#060f09).

Color palette

TokenLightDark
Background
#fbfefcwhite
#060f09black
Foreground
#03170ablack
#ffffffwhite
Card
#fbfefcwhite
#060f09black
Card foreground
#03170ablack
#ffffffwhite
Popover
#fbfefcwhite
#060f09black
Popover foreground
#03170ablack
#ffffffwhite
Primary
#25653cdarkslategray
#25653cdarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3c2565midnightblue
#3c2565midnightblue
Secondary foreground
#dacfedgainsboro
#dacfedgainsboro
Muted
#e6dff1lavender
#150e20black
Muted foreground
#515152darkslategray
#adadaedarkgray
Accent
#653c25saddlebrown
#653c25saddlebrown
Accent foreground
#eddacfgainsboro
#eddacfgainsboro
Destructive
#971111darkred
#e93a3acrimson
Destructive foreground
#fbdfdfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25653cdarkslategray
#25653cdarkslategray

Contrast

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

Light mode
Text on background18.29:1AAA
Text on card18.29:1AAA
Primary button7.02:1AAA
Secondary button8.57:1AAA
Muted text6.10:1AA
Accent6.96:1AA
Destructive6.93:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.02:1AAA
Secondary button8.57:1AAA
Muted text8.41:1AAA
Accent6.96:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 158.621);
  --foreground: oklch(0.181 0.038 154.886);
  --muted: oklch(0.914 0.026 302.5);
  --muted-foreground: oklch(0.435 0.003 302.833);
  --popover: oklch(0.994 0.005 158.621);
  --popover-foreground: oklch(0.181 0.038 154.886);
  --card: oklch(0.994 0.005 158.621);
  --card-foreground: oklch(0.181 0.038 154.886);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.092 152.836);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.33 0.107 297.041);
  --secondary-foreground: oklch(0.872 0.043 302.172);
  --accent: oklch(0.4 0.067 50.022);
  --accent-foreground: oklch(0.9 0.026 52.198);
  --destructive: oklch(0.433 0.167 27.917);
  --destructive-foreground: oklch(0.927 0.032 17.736);
  --ring: oklch(0.453 0.092 152.836);
  --chart-1: oklch(0.453 0.092 152.836);
  --chart-2: oklch(0.33 0.107 297.041);
  --chart-3: oklch(0.4 0.067 50.022);
  --chart-4: oklch(0.353 0.117 296.901);
  --chart-5: oklch(0.458 0.097 152.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.02 157.32);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.038 299.559);
  --muted-foreground: oklch(0.747 0.002 302.88);
  --popover: oklch(0.156 0.02 157.32);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.02 157.32);
  --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.453 0.092 152.836);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.33 0.107 297.041);
  --secondary-foreground: oklch(0.872 0.043 302.172);
  --accent: oklch(0.4 0.067 50.022);
  --accent-foreground: oklch(0.9 0.026 52.198);
  --destructive: oklch(0.616 0.212 26.03);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.092 152.836);
  --chart-1: oklch(0.453 0.092 152.836);
  --chart-2: oklch(0.33 0.107 297.041);
  --chart-3: oklch(0.4 0.067 50.022);
  --chart-4: oklch(0.353 0.117 296.901);
  --chart-5: oklch(0.458 0.097 152.476);
}