Biodegradable for shadcn/ui

Biodegradable is a shadcn/ui theme built around a near-white primary color (#fefbfb) with near-white accents (#fefcfb). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#fefbfb) on a neutral background (#080303).

Color palette

TokenLightDark
Background
#fefbfbsnow
#080303black
Foreground
#110304black
#faf4f4whitesmoke
Card
#fefbfbsnow
#080303black
Card foreground
#110304black
#faf4f4whitesmoke
Popover
#fefbfbsnow
#080303black
Popover foreground
#110304black
#faf4f4whitesmoke
Primary
#fefbfbsnow
#fefbfbsnow
Primary foreground
#982f32brown
#982f32brown
Secondary
#fefbfdsnow
#fefbfdsnow
Secondary foreground
#982f67purple
#982f67purple
Muted
#ded3d9gainsboro
#2c2127darkslategray
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#fefcfbsnow
#fefcfbsnow
Accent foreground
#4a2f17darkolivegreen
#4a2f17darkolivegreen
Destructive
#942500darkred
#fa3e00orangered
Destructive foreground
#ffd5c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefbfbsnow
#fefbfbsnow

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.66:1AAA
Primary button7.32:1AAA
Secondary button6.95:1AA
Muted text5.63:1AA
Accent12.02:1AAA
Destructive6.18:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button7.32:1AAA
Secondary button6.95:1AA
Muted text7.18:1AAA
Accent12.02:1AAA
Destructive3.64: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.991 0.003 14.839);
  --foreground: oklch(0.129 0.031 19.159);
  --muted: oklch(0.878 0.015 343.869);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.991 0.003 14.839);
  --popover-foreground: oklch(0.129 0.031 19.159);
  --card: oklch(0.991 0.003 14.839);
  --card-foreground: oklch(0.129 0.031 19.159);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.99 0.003 14.844);
  --primary-foreground: oklch(0.464 0.14 22.68);
  --secondary: oklch(0.991 0.003 343.531);
  --secondary-foreground: oklch(0.479 0.151 351.447);
  --accent: oklch(0.993 0.002 64.06);
  --accent-foreground: oklch(0.332 0.054 60.38);
  --destructive: oklch(0.441 0.152 35.722);
  --destructive-foreground: oklch(0.905 0.051 39.27);
  --ring: oklch(0.99 0.003 14.844);
  --chart-1: oklch(0.99 0.003 14.844);
  --chart-2: oklch(0.991 0.003 343.531);
  --chart-3: oklch(0.993 0.002 64.06);
  --chart-4: oklch(1.018 0.007 163.276);
  --chart-5: oklch(0.99 0.003 14.847);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.016 17.048);
  --foreground: oklch(0.973 0.007 14.917);
  --muted: oklch(0.262 0.021 345.313);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.105 0.016 17.048);
  --popover-foreground: oklch(0.973 0.007 14.917);
  --card: oklch(0.105 0.016 17.048);
  --card-foreground: oklch(0.973 0.007 14.917);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.99 0.003 14.844);
  --primary-foreground: oklch(0.464 0.14 22.68);
  --secondary: oklch(0.991 0.003 343.531);
  --secondary-foreground: oklch(0.479 0.151 351.447);
  --accent: oklch(0.993 0.002 64.06);
  --accent-foreground: oklch(0.332 0.054 60.38);
  --destructive: oklch(0.646 0.229 34.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.003 14.844);
  --chart-1: oklch(0.99 0.003 14.844);
  --chart-2: oklch(0.991 0.003 343.531);
  --chart-3: oklch(0.993 0.002 64.06);
  --chart-4: oklch(1.018 0.007 163.276);
  --chart-5: oklch(0.99 0.003 14.847);
}