Whole is a shadcn/ui theme built around a light green primary color (#f4faf7) with light pink accents (#faf4f8). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the light green primary (#f4faf7) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #030705black |
| Foreground | #04160cblack | #f9fbfamintcream |
| Card | #f3fbf7mintcream | #050b07black |
| Card foreground | #031109black | #fcfdfcwhite |
| Popover | #f7fdfamintcream | #030705black |
| Popover foreground | #04160cblack | #f9fbfamintcream |
| Primary | #f4faf7whitesmoke | #f4faf7whitesmoke |
| Primary foreground | #1b3c29darkslategray | #1b3c29darkslategray |
| Secondary | #faf4f8whitesmoke | #faf4f8whitesmoke |
| Secondary foreground | #823a63dimgray | #823a63dimgray |
| Muted | #ebe0e6gainsboro | #1f141ablack |
| Muted foreground | #6f5263dimgray | #ad90a0rosybrown |
| Accent | #faf4f8whitesmoke | #faf4f8whitesmoke |
| Accent foreground | #823a63dimgray | #823a63dimgray |
| Destructive | #722f08saddlebrown | #e55e10chocolate |
| Destructive foreground | #facdb3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4faf7whitesmoke | #f4faf7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.06:1 | AAA |
| Text on card | 18.38:1 | AAA |
| Primary button | 11.54:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 11.54:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 7.10:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Whole in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 161.64);
--foreground: oklch(0.179 0.033 157.806);
--muted: oklch(0.917 0.015 342.208);
--muted-foreground: oklch(0.476 0.046 343.971);
--popover: oklch(0.988 0.007 161.64);
--popover-foreground: oklch(0.179 0.033 157.806);
--card: oklch(0.982 0.01 161.554);
--card-foreground: oklch(0.162 0.028 159.545);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.981 0.008 161.623);
--primary-foreground: oklch(0.324 0.052 157.017);
--secondary: oklch(0.974 0.008 341.993);
--secondary-foreground: oklch(0.458 0.111 347.233);
--accent: oklch(0.974 0.008 341.993);
--accent-foreground: oklch(0.458 0.111 347.233);
--destructive: oklch(0.394 0.106 45.103);
--destructive-foreground: oklch(0.88 0.062 51.685);
--ring: oklch(0.981 0.008 161.623);
--chart-1: oklch(0.981 0.008 161.623);
--chart-2: oklch(0.974 0.008 341.993);
--chart-3: oklch(0.974 0.008 341.993);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.981 0.008 161.608);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 161.794);
--foreground: oklch(0.986 0.002 161.756);
--muted: oklch(0.208 0.023 344.255);
--muted-foreground: oklch(0.683 0.042 343.206);
--popover: oklch(0.121 0.012 161.794);
--popover-foreground: oklch(0.986 0.002 161.756);
--card: oklch(0.139 0.014 161.754);
--card-foreground: oklch(0.993 0.001 161.782);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.981 0.008 161.623);
--primary-foreground: oklch(0.324 0.052 157.017);
--secondary: oklch(0.974 0.008 341.993);
--secondary-foreground: oklch(0.458 0.111 347.233);
--accent: oklch(0.974 0.008 341.993);
--accent-foreground: oklch(0.458 0.111 347.233);
--destructive: oklch(0.646 0.184 43.532);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.981 0.008 161.623);
--chart-1: oklch(0.981 0.008 161.623);
--chart-2: oklch(0.974 0.008 341.993);
--chart-3: oklch(0.974 0.008 341.993);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.981 0.008 161.608);
}