Biodegradable is a shadcn/ui theme built around a muted deep pink primary color (#4d3d44) with muted deep red accents (#4d3d3d). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the muted deep pink primary (#4d3d44) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #000000black |
| Foreground | #11040ablack | #fdfcfcsnow |
| Card | #faf4f7whitesmoke | #030303black |
| Card foreground | #0d0307black | #ffffffwhite |
| Popover | #fcf8fasnow | #000000black |
| Popover foreground | #11040ablack | #fdfcfcsnow |
| Primary | #4d3d44darkslategray | #4d3d44darkslategray |
| Primary foreground | #e2daddgainsboro | #e2daddgainsboro |
| Secondary | #4d3d4cdarkslategray | #4d3d4cdarkslategray |
| Secondary foreground | #e2dae1gainsboro | #e2dae1gainsboro |
| Muted | #e2dfe2gainsboro | #201d20black |
| Muted foreground | #524c52darkslategray | #b3adb3darkgray |
| Accent | #4d3d3ddarkslategray | #4d3d3ddarkslategray |
| Accent foreground | #e2dadagainsboro | #e2dadagainsboro |
| Destructive | #871008darkred | #d91a0dfirebrick |
| Destructive foreground | #fcc9c5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d3d44darkslategray | #4d3d44darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 5.11: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.005 347.95);
--foreground: oklch(0.133 0.031 349.75);
--muted: oklch(0.906 0.006 327.101);
--muted-foreground: oklch(0.424 0.013 327.313);
--popover: oklch(0.982 0.005 347.95);
--popover-foreground: oklch(0.133 0.031 349.75);
--card: oklch(0.974 0.007 348.022);
--card-foreground: oklch(0.12 0.027 347.903);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.379 0.026 349.599);
--primary-foreground: oklch(0.895 0.01 348.114);
--secondary: oklch(0.382 0.034 327.829);
--secondary-foreground: oklch(0.896 0.013 327.175);
--accent: oklch(0.378 0.022 21.707);
--accent-foreground: oklch(0.895 0.008 21.008);
--destructive: oklch(0.4 0.153 29.709);
--destructive-foreground: oklch(0.879 0.058 23.073);
--ring: oklch(0.379 0.026 349.599);
--chart-1: oklch(0.379 0.026 349.599);
--chart-2: oklch(0.382 0.034 327.829);
--chart-3: oklch(0.378 0.022 21.707);
--chart-4: oklch(0.41 0.037 327.842);
--chart-5: oklch(0.377 0.032 350.048);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 347.833);
--muted: oklch(0.235 0.009 327.37);
--muted-foreground: oklch(0.754 0.011 327.173);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 347.833);
--card: oklch(0.092 0 180);
--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.379 0.026 349.599);
--primary-foreground: oklch(0.895 0.01 348.114);
--secondary: oklch(0.382 0.034 327.829);
--secondary-foreground: oklch(0.896 0.013 327.175);
--accent: oklch(0.378 0.022 21.707);
--accent-foreground: oklch(0.895 0.008 21.008);
--destructive: oklch(0.564 0.22 29.752);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.379 0.026 349.599);
--chart-1: oklch(0.379 0.026 349.599);
--chart-2: oklch(0.382 0.034 327.829);
--chart-3: oklch(0.378 0.022 21.707);
--chart-4: oklch(0.41 0.037 327.842);
--chart-5: oklch(0.377 0.032 350.048);
}