Compost is a shadcn/ui theme built around a vivid deep pink primary color (#2a031d) with vivid deep blue accents (#031d2a). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid deep pink primary (#2a031d) on a pink-tinted background (#0c0309).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0c0309black |
| Foreground | #000000black | #faf5f8whitesmoke |
| Card | #fcf8fbsnow | #0c0309black |
| Card foreground | #000000black | #faf5f8whitesmoke |
| Popover | #fcf8fbsnow | #0c0309black |
| Popover foreground | #000000black | #faf5f8whitesmoke |
| Primary | #2a031dblack | #2a031dblack |
| Primary foreground | #f36dc6hotpink | #f36dc6hotpink |
| Secondary | #1d2a03black | #1d2a03black |
| Secondary foreground | #a0e713greenyellow | #a0e713greenyellow |
| Muted | #f3f4f1whitesmoke | #0d0e0bblack |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #031d2ablack | #031d2ablack |
| Accent foreground | #6dc6f3lightskyblue | #6dc6f3lightskyblue |
| Destructive | #b63a11firebrick | #e94b16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a031dblack | #2a031dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 10.00:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 9.04:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 18.84:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 10.00:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 9.04:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Compost in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 337.391);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.004 121.557);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.982 0.006 337.391);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.006 337.391);
--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.198 0.074 344.244);
--primary-foreground: oklch(0.723 0.192 342.285);
--secondary: oklch(0.265 0.063 126.317);
--secondary-foreground: oklch(0.849 0.221 128.734);
--accent: oklch(0.22 0.041 233.639);
--accent-foreground: oklch(0.789 0.107 232.066);
--destructive: oklch(0.525 0.167 36.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.198 0.074 344.244);
--chart-1: oklch(0.198 0.074 344.244);
--chart-2: oklch(0.265 0.063 126.317);
--chart-3: oklch(0.22 0.041 233.639);
--chart-4: oklch(0.316 0.077 127.002);
--chart-5: oklch(0.199 0.076 344.422);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.026 338.037);
--foreground: oklch(0.975 0.007 337.4);
--muted: oklch(0.162 0.006 122.088);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.122 0.026 338.037);
--popover-foreground: oklch(0.975 0.007 337.4);
--card: oklch(0.122 0.026 338.037);
--card-foreground: oklch(0.975 0.007 337.4);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.198 0.074 344.244);
--primary-foreground: oklch(0.723 0.192 342.285);
--secondary: oklch(0.265 0.063 126.317);
--secondary-foreground: oklch(0.849 0.221 128.734);
--accent: oklch(0.22 0.041 233.639);
--accent-foreground: oklch(0.789 0.107 232.066);
--destructive: oklch(0.63 0.203 36.496);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.198 0.074 344.244);
--chart-1: oklch(0.198 0.074 344.244);
--chart-2: oklch(0.265 0.063 126.317);
--chart-3: oklch(0.22 0.041 233.639);
--chart-4: oklch(0.316 0.077 127.002);
--chart-5: oklch(0.199 0.076 344.422);
}