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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.29:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 4.09:1 | AA Large |
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);
}