Biodegradable is a shadcn/ui theme built around a blue primary color (#3877ad) with indigo accents (#383cad). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3877ad) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #010304black | #ffffffwhite |
| Card | #fcfcfcsnow | #020508black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #3877adsteelblue | #3877adsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #38ada9lightseagreen | #38ada9lightseagreen |
| Secondary foreground | #061313black | #061313black |
| Muted | #d7eae9gainsboro | #152827black |
| Muted foreground | #3c4e4ddarkslategray | #b1c3c3silver |
| Accent | #383caddarkslateblue | #383caddarkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #861b03darkred | #ea3006orangered |
| Destructive foreground | #fdcabepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3877adsteelblue | #3877adsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.77:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 8.66:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 20.69:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 4.77:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 8.66:1 | AAA |
| Destructive | 4.27:1 | AA Large |
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.089 0.011 235.594);
--muted: oklch(0.922 0.02 194.386);
--muted-foreground: oklch(0.408 0.022 193.778);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.089 0.011 235.594);
--card: oklch(0.992 0 161.565);
--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.552 0.107 247.562);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.684 0.102 191.816);
--secondary-foreground: oklch(0.175 0.019 192.872);
--accent: oklch(0.429 0.176 274.582);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.406 0.145 33.284);
--destructive-foreground: oklch(0.881 0.061 32.848);
--ring: oklch(0.552 0.107 247.562);
--chart-1: oklch(0.552 0.107 247.562);
--chart-2: oklch(0.684 0.102 191.816);
--chart-3: oklch(0.429 0.176 274.582);
--chart-4: oklch(0.717 0.107 191.804);
--chart-5: oklch(0.553 0.113 247.875);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.01 236.266);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.025 193.023);
--muted-foreground: oklch(0.804 0.02 194.338);
--popover: oklch(0.09 0.01 236.266);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.012 236.266);
--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.552 0.107 247.562);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.684 0.102 191.816);
--secondary-foreground: oklch(0.175 0.019 192.872);
--accent: oklch(0.429 0.176 274.582);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.224 32.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.552 0.107 247.562);
--chart-1: oklch(0.552 0.107 247.562);
--chart-2: oklch(0.684 0.102 191.816);
--chart-3: oklch(0.429 0.176 274.582);
--chart-4: oklch(0.717 0.107 191.804);
--chart-5: oklch(0.553 0.113 247.875);
}