Biodegradable is a shadcn/ui theme built around a muted yellow primary color (#7d6e4a) with muted violet accents (#6e4a7d). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the muted yellow primary (#7d6e4a) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf7snow | #040301black |
| Foreground | #000000black | #faf9f4whitesmoke |
| Card | #fbf9f4floralwhite | #080602black |
| Card foreground | #000000black | #fcfbf8snow |
| Popover | #fcfbf7snow | #040301black |
| Popover foreground | #000000black | #faf9f4whitesmoke |
| Primary | #7d6e4adimgray | #7d6e4adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4a7d6edimgray | #4a7d6edimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7eeeclavender | #111816black |
| Muted foreground | #42524ddarkslategray | #adbdb8silver |
| Accent | #6e4a7drebeccapurple | #6e4a7drebeccapurple |
| Accent foreground | #fdfcfdwhite | #fdfcfdwhite |
| Destructive | #b03711firebrick | #e94f20chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d6e4adimgray | #7d6e4adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 4.70:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 4.70:1 | AA |
| Muted text | 9.22:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Biodegradable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 87.445);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.008 176.414);
--muted-foreground: oklch(0.423 0.022 175.057);
--popover: oklch(0.988 0.005 87.445);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 87.458);
--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.543 0.055 87.315);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.55 0.061 172.772);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.469 0.091 315.262);
--accent-foreground: oklch(0.992 0.002 316.014);
--destructive: oklch(0.512 0.164 35.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.055 87.315);
--chart-1: oklch(0.543 0.055 87.315);
--chart-2: oklch(0.55 0.061 172.772);
--chart-3: oklch(0.469 0.091 315.262);
--chart-4: oklch(0.579 0.065 172.738);
--chart-5: oklch(0.548 0.061 87.196);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 93.234);
--foreground: oklch(0.981 0.006 87.45);
--muted: oklch(0.201 0.011 174.916);
--muted-foreground: oklch(0.785 0.019 175.931);
--popover: oklch(0.099 0.012 93.234);
--popover-foreground: oklch(0.981 0.006 87.45);
--card: oklch(0.125 0.015 93.234);
--card-foreground: oklch(0.987 0.004 87.44);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.543 0.055 87.315);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.55 0.061 172.772);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.469 0.091 315.262);
--accent-foreground: oklch(0.992 0.002 316.014);
--destructive: oklch(0.635 0.198 36.298);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.055 87.315);
--chart-1: oklch(0.543 0.055 87.315);
--chart-2: oklch(0.55 0.061 172.772);
--chart-3: oklch(0.469 0.091 315.262);
--chart-4: oklch(0.579 0.065 172.738);
--chart-5: oklch(0.548 0.061 87.196);
}