Biodegradable is a shadcn/ui theme built around a purple primary color (#d263e9) with pink accents (#e963bc). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#d263e9) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #030203black |
| Foreground | #0f0311black | #fdfcfdwhite |
| Card | #fbf8fcghostwhite | #030203black |
| Card foreground | #0f0311black | #fdfcfdwhite |
| Popover | #fbf8fcghostwhite | #030203black |
| Popover foreground | #0f0311black | #fdfcfdwhite |
| Primary | #d263e9orchid | #d263e9orchid |
| Primary foreground | #130316black | #130316black |
| Secondary | #8f63e9mediumpurple | #8f63e9mediumpurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ded8e9gainsboro | #1c1627black |
| Muted foreground | #443d51darkslategray | #b4aec2silver |
| Accent | #e963bchotpink | #e963bchotpink |
| Accent foreground | #160310black | #160310black |
| Destructive | #d64b05chocolate | #f96115orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d263e9orchid | #d263e9orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 4.09:1 | AA Large |
| Muted text | 7.41:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 4.32:1 | AA Large |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 4.09:1 | AA Large |
| Muted text | 8.19:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Biodegradable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 320.543);
--foreground: oklch(0.134 0.038 321.661);
--muted: oklch(0.891 0.024 301.06);
--muted-foreground: oklch(0.376 0.035 299.993);
--popover: oklch(0.982 0.007 320.543);
--popover-foreground: oklch(0.134 0.038 321.661);
--card: oklch(0.982 0.007 320.543);
--card-foreground: oklch(0.134 0.038 321.661);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.685 0.214 320.684);
--primary-foreground: oklch(0.145 0.05 321.418);
--secondary: oklch(0.611 0.194 295.436);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.192 342.538);
--accent-foreground: oklch(0.147 0.045 341.285);
--destructive: oklch(0.598 0.186 39.894);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.685 0.214 320.684);
--chart-1: oklch(0.685 0.214 320.684);
--chart-2: oklch(0.611 0.194 295.436);
--chart-3: oklch(0.693 0.192 342.538);
--chart-4: oklch(0.642 0.178 296.419);
--chart-5: oklch(0.685 0.221 320.663);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.01 321.531);
--foreground: oklch(0.992 0.002 320.535);
--muted: oklch(0.216 0.034 298.868);
--muted-foreground: oklch(0.761 0.029 300.877);
--popover: oklch(0.088 0.01 321.531);
--popover-foreground: oklch(0.992 0.002 320.535);
--card: oklch(0.088 0.01 321.531);
--card-foreground: oklch(0.992 0.002 320.535);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.685 0.214 320.684);
--primary-foreground: oklch(0.145 0.05 321.418);
--secondary: oklch(0.611 0.194 295.436);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.693 0.192 342.538);
--accent-foreground: oklch(0.147 0.045 341.285);
--destructive: oklch(0.681 0.2 41.419);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.685 0.214 320.684);
--chart-1: oklch(0.685 0.214 320.684);
--chart-2: oklch(0.611 0.194 295.436);
--chart-3: oklch(0.693 0.192 342.538);
--chart-4: oklch(0.642 0.178 296.419);
--chart-5: oklch(0.685 0.221 320.663);
}