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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 12.02:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 7.18:1 | AAA |
| Accent | 12.02:1 | AAA |
| Destructive | 3.64:1 | AA Large |
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);
}