Bloom is a shadcn/ui theme built around a vivid green primary color (#87970c) with vivid green accents (#41970c). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the vivid green primary (#87970c) on a green-tinted background (#0b0c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #0b0c04black |
| Foreground | #131504black | #fdfdfcwhite |
| Card | #fcfdf7snow | #0b0c04black |
| Card foreground | #131504black | #fdfdfcwhite |
| Popover | #fcfdf7snow | #0b0c04black |
| Popover foreground | #131504black | #fdfdfcwhite |
| Primary | #87970colive | #87970colive |
| Primary foreground | #000000black | #000000black |
| Secondary | #97620csaddlebrown | #97620csaddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f3f0whitesmoke | #0f0d0bblack |
| Muted foreground | #504f4edarkslategray | #b1b0afdarkgray |
| Accent | #41970cforestgreen | #41970cforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d34509chocolate | #f5510aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #87970colive | #87970colive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.00:1 | AAA |
| Text on card | 18.00:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 5.17:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 3.71:1 | AA Large |
| Destructive | 4.54:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 5.17:1 | AA |
| Muted text | 8.95:1 | AAA |
| Accent | 3.71:1 | AA Large |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Bloom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 111.91);
--foreground: oklch(0.189 0.032 114.607);
--muted: oklch(0.964 0.003 79.928);
--muted-foreground: oklch(0.429 0.002 79.927);
--popover: oklch(0.991 0.007 111.91);
--popover-foreground: oklch(0.189 0.032 114.607);
--card: oklch(0.991 0.007 111.91);
--card-foreground: oklch(0.189 0.032 114.607);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.641 0.145 117.18);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.54 0.112 71.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.599 0.18 137.632);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.586 0.187 38.277);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.641 0.145 117.18);
--chart-1: oklch(0.641 0.145 117.18);
--chart-2: oklch(0.54 0.112 71.099);
--chart-3: oklch(0.599 0.18 137.632);
--chart-4: oklch(0.576 0.12 70.874);
--chart-5: oklch(0.648 0.148 117.301);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.019 113.148);
--foreground: oklch(0.994 0.002 111.813);
--muted: oklch(0.161 0.005 79.839);
--muted-foreground: oklch(0.758 0.002 79.93);
--popover: oklch(0.148 0.019 113.148);
--popover-foreground: oklch(0.994 0.002 111.813);
--card: oklch(0.148 0.019 113.148);
--card-foreground: oklch(0.994 0.002 111.813);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.641 0.145 117.18);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.54 0.112 71.099);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.599 0.18 137.632);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.655 0.211 38.038);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.641 0.145 117.18);
--chart-1: oklch(0.641 0.145 117.18);
--chart-2: oklch(0.54 0.112 71.099);
--chart-3: oklch(0.599 0.18 137.632);
--chart-4: oklch(0.576 0.12 70.874);
--chart-5: oklch(0.648 0.148 117.301);
}