Crumb is a shadcn/ui theme built around a green primary color (#5dd57d) with teal accents (#5dd5b9). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#5dd57d) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030704black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #f8fcf9mintcream | #040b06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #040b06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #5dd57dmediumaquamarine | #5dd57dmediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #79d55dyellowgreen | #79d55dyellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #dcead7gainsboro | #1a2815black |
| Muted foreground | #465242darkslategray | #b1bdaddarkgray |
| Accent | #5dd5b9mediumaquamarine | #5dd5b9mediumaquamarine |
| Accent foreground | #000000black | #000000black |
| Destructive | #bb4d11chocolate | #ed793bcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5dd57dmediumaquamarine | #5dd57dmediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 11.29:1 | AAA |
| Secondary button | 11.50:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 11.70:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 11.29:1 | AAA |
| Secondary button | 11.50:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 11.70:1 | AAA |
| Destructive | 7.40:1 | AAA |
Paste this into your globals.css to use Crumb in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 154.473);
--foreground: oklch(0.098 0.017 153.858);
--muted: oklch(0.92 0.029 138.363);
--muted-foreground: oklch(0.423 0.031 138.416);
--popover: oklch(0.987 0.006 154.418);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 154.418);
--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.783 0.165 149.749);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.79 0.181 138.943);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.797 0.116 175.405);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.557 0.156 43.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.783 0.165 149.749);
--chart-1: oklch(0.783 0.165 149.749);
--chart-2: oklch(0.79 0.181 138.943);
--chart-3: oklch(0.797 0.116 175.405);
--chart-4: oklch(0.804 0.169 138.825);
--chart-5: oklch(0.79 0.172 149.525);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.015 154.054);
--foreground: oklch(0.993 0.001 154.503);
--muted: oklch(0.257 0.038 138.575);
--muted-foreground: oklch(0.785 0.026 138.366);
--popover: oklch(0.139 0.018 154.009);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.018 154.009);
--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.783 0.165 149.749);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.79 0.181 138.943);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.797 0.116 175.405);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.699 0.161 46.419);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.783 0.165 149.749);
--chart-1: oklch(0.783 0.165 149.749);
--chart-2: oklch(0.79 0.181 138.943);
--chart-3: oklch(0.797 0.116 175.405);
--chart-4: oklch(0.804 0.169 138.825);
--chart-5: oklch(0.79 0.172 149.525);
}