Biodegradable is a shadcn/ui theme built around a muted deep green primary color (#2b2f28) with muted deep green accents (#282f28). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#2b2f28) on a neutral background (#050802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050802black |
| Foreground | #070c03black | #fafbf9snow |
| Card | #ffffffwhite | #050802black |
| Card foreground | #070c03black | #fafbf9snow |
| Popover | #ffffffwhite | #050802black |
| Popover foreground | #070c03black | #fafbf9snow |
| Primary | #2b2f28darkslategray | #2b2f28darkslategray |
| Primary foreground | #c4c9c0silver | #c4c9c0silver |
| Secondary | #2e2f28darkslategray | #2e2f28darkslategray |
| Secondary foreground | #c8c9c0silver | #c8c9c0silver |
| Muted | #ecede8linen | #161712black |
| Muted foreground | #63654edimgray | #afb19adarkgray |
| Accent | #282f28darkslategray | #282f28darkslategray |
| Accent foreground | #c0c9c0silver | #c0c9c0silver |
| Destructive | #ae3a04firebrick | #f95d15orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b2f28darkslategray | #2b2f28darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.09:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.61:1 | AA |
Paste this into your globals.css to use Biodegradable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.024 130.473);
--muted: oklch(0.944 0.006 110.365);
--muted-foreground: oklch(0.498 0.035 111.55);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.024 130.473);
--card: oklch(1 0 180);
--card-foreground: oklch(0.145 0.024 130.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.298 0.014 132.102);
--primary-foreground: oklch(0.829 0.014 131.865);
--secondary: oklch(0.301 0.012 110.992);
--secondary-foreground: oklch(0.833 0.013 110.535);
--accent: oklch(0.295 0.015 147.519);
--accent-foreground: oklch(0.826 0.016 147.863);
--destructive: oklch(0.511 0.16 39.304);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.298 0.014 132.102);
--chart-1: oklch(0.298 0.014 132.102);
--chart-2: oklch(0.301 0.012 110.992);
--chart-3: oklch(0.295 0.015 147.519);
--chart-4: oklch(0.334 0.014 111.018);
--chart-5: oklch(0.301 0.018 132.243);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.021 130.257);
--foreground: oklch(0.986 0.002 131.744);
--muted: oklch(0.201 0.009 111.046);
--muted-foreground: oklch(0.754 0.032 111.039);
--popover: oklch(0.126 0.021 130.257);
--popover-foreground: oklch(0.986 0.002 131.744);
--card: oklch(0.126 0.021 130.257);
--card-foreground: oklch(0.986 0.002 131.744);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.298 0.014 132.102);
--primary-foreground: oklch(0.829 0.014 131.865);
--secondary: oklch(0.301 0.012 110.992);
--secondary-foreground: oklch(0.833 0.013 110.535);
--accent: oklch(0.295 0.015 147.519);
--accent-foreground: oklch(0.826 0.016 147.863);
--destructive: oklch(0.676 0.204 40.271);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.298 0.014 132.102);
--chart-1: oklch(0.298 0.014 132.102);
--chart-2: oklch(0.301 0.012 110.992);
--chart-3: oklch(0.295 0.015 147.519);
--chart-4: oklch(0.334 0.014 111.018);
--chart-5: oklch(0.301 0.018 132.243);
}