Biodegradable for shadcn/ui

Biodegradable is a shadcn/ui theme built around a near-white primary color (#fbfefb) with near-white accents (#fefbfb). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the near-white primary (#fbfefb) on a green-tinted background (#050a05).

Color palette

TokenLightDark
Background
#fcfdfbsnow
#050a05black
Foreground
#000000black
#f6f9f5whitesmoke
Card
#f8fcf8mintcream
#070e07black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#f8fcf8mintcream
#070e07black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#fbfefbwhite
#fbfefbwhite
Primary foreground
#155010darkgreen
#155010darkgreen
Secondary
#fbfbfeghostwhite
#fbfbfeghostwhite
Secondary foreground
#222ba5darkslateblue
#222ba5darkslateblue
Muted
#d4d5ddlightgrey
#22222bdarkslategray
Muted foreground
#4e4f55darkslategray
#aaabb1darkgray
Accent
#fefbfbsnow
#fefbfbsnow
Accent foreground
#a5222bbrown
#a5222bbrown
Destructive
#b32914firebrick
#d33017firebrick
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbfefbwhite
#fbfefbwhite

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.26:1AAA
Primary button9.45:1AAA
Secondary button10.38:1AAA
Muted text5.57:1AA
Accent7.11:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.80:1AAA
Primary button9.45:1AAA
Secondary button10.38:1AAA
Muted text6.87:1AA
Accent7.11:1AAA
Destructive4.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 143.618);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.874 0.012 282.877);
  --muted-foreground: oklch(0.429 0.01 282.703);
  --popover: oklch(0.987 0.007 143.601);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.007 143.601);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.994 0.006 143.606);
  --primary-foreground: oklch(0.381 0.112 142.141);
  --secondary: oklch(0.989 0.004 283.035);
  --secondary-foreground: oklch(0.379 0.191 270.068);
  --accent: oklch(0.99 0.004 12.503);
  --accent-foreground: oklch(0.474 0.166 23.329);
  --destructive: oklch(0.503 0.177 31.626);
  --destructive-foreground: oklch(0.991 0.004 27.952);
  --ring: oklch(0.994 0.006 143.606);
  --chart-1: oklch(0.994 0.006 143.606);
  --chart-2: oklch(0.989 0.004 283.035);
  --chart-3: oklch(0.99 0.004 12.503);
  --chart-4: oklch(1.022 0.008 103.241);
  --chart-5: oklch(0.994 0.006 143.605);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 142.579);
  --foreground: oklch(0.979 0.007 143.599);
  --muted: oklch(0.256 0.016 281.976);
  --muted-foreground: oklch(0.741 0.009 282.906);
  --popover: oklch(0.152 0.019 142.65);
  --popover-foreground: oklch(0.986 0.005 143.611);
  --card: oklch(0.152 0.019 142.65);
  --card-foreground: oklch(0.986 0.005 143.611);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.994 0.006 143.606);
  --primary-foreground: oklch(0.381 0.112 142.141);
  --secondary: oklch(0.989 0.004 283.035);
  --secondary-foreground: oklch(0.379 0.191 270.068);
  --accent: oklch(0.99 0.004 12.503);
  --accent-foreground: oklch(0.474 0.166 23.329);
  --destructive: oklch(0.567 0.202 31.601);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.006 143.606);
  --chart-1: oklch(0.994 0.006 143.606);
  --chart-2: oklch(0.989 0.004 283.035);
  --chart-3: oklch(0.99 0.004 12.503);
  --chart-4: oklch(1.022 0.008 103.241);
  --chart-5: oklch(0.994 0.006 143.605);
}