Whole is a shadcn/ui theme built around a muted green primary color (#84a465) with muted green accents (#65a466). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted green primary (#84a465) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #000000black |
| Foreground | #0a1005black | #fcfdfbsnow |
| Card | #fcfefbwhite | #000000black |
| Card foreground | #0a1005black | #fcfdfbsnow |
| Popover | #fcfefbwhite | #000000black |
| Popover foreground | #0a1005black | #fcfdfbsnow |
| Primary | #84a465gray | #84a465gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #a3a465darkkhaki | #a3a465darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #eeeeddbeige | #222211black |
| Muted foreground | #65664ddimgray | #b2b299darkgray |
| Accent | #65a466mediumseagreen | #65a466mediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #c53e0dfirebrick | #f15a22chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #84a465gray | #84a465gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 5.18:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Whole in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 129.177);
--foreground: oklch(0.161 0.025 129.334);
--muted: oklch(0.945 0.023 107.606);
--muted-foreground: oklch(0.502 0.038 108.48);
--popover: oklch(0.995 0.005 129.177);
--popover-foreground: oklch(0.161 0.025 129.334);
--card: oklch(0.995 0.005 129.177);
--card-foreground: oklch(0.161 0.025 129.334);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.096 130.811);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.704 0.085 109.221);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.661 0.112 144.535);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.554 0.179 37.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.096 130.811);
--chart-1: oklch(0.68 0.096 130.811);
--chart-2: oklch(0.704 0.085 109.221);
--chart-3: oklch(0.661 0.112 144.535);
--chart-4: oklch(0.723 0.08 109.059);
--chart-5: oklch(0.688 0.106 131.005);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.003 129.156);
--muted: oklch(0.247 0.03 109.236);
--muted-foreground: oklch(0.757 0.035 107.981);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.003 129.156);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.003 129.156);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.096 130.811);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.704 0.085 109.221);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.661 0.112 144.535);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.66 0.197 38.313);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.68 0.096 130.811);
--chart-1: oklch(0.68 0.096 130.811);
--chart-2: oklch(0.704 0.085 109.221);
--chart-3: oklch(0.661 0.112 144.535);
--chart-4: oklch(0.723 0.08 109.059);
--chart-5: oklch(0.688 0.106 131.005);
}