White is a shadcn/ui theme built around a muted light blue primary color (#bfcad4) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#bfcad4) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #000000black | #000000black |
| Card | #fafafasnow | #fafafasnow |
| Card foreground | #000000black | #000000black |
| Popover | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Popover foreground | #000000black | #000000black |
| Primary | #bfcad4lightsteelblue | #bfcad4lightsteelblue |
| Primary foreground | #27313adarkslategray | #27313adarkslategray |
| Secondary | #3a4045darkslategray | #3a4045darkslategray |
| Secondary foreground | #d5d9dcgainsboro | #d5d9dcgainsboro |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Accent foreground | #404040darkslategray | #404040darkslategray |
| Destructive | #9b1a03darkred | #9b1a03darkred |
| Destructive foreground | #fed9d2bisque | #fed9d2bisque |
| Border | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Input | #ebebeblinen | #ebebeblinen |
| Ring | #bfcad4lightsteelblue | #bfcad4lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use White in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.833 0.018 246.213);
--primary-foreground: oklch(0.307 0.021 246.742);
--secondary: oklch(0.368 0.012 246.35);
--secondary-foreground: oklch(0.883 0.006 246.045);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.445 0.166 31.911);
--destructive-foreground: oklch(0.914 0.043 29.706);
--ring: oklch(0.833 0.018 246.213);
--chart-1: oklch(0.833 0.018 246.213);
--chart-2: oklch(0.368 0.012 246.35);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.396 0.014 246.358);
--chart-5: oklch(0.833 0.021 246.251);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.977 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.962 0 180);
--input: oklch(0.939 0 180);
--primary: oklch(0.833 0.018 246.213);
--primary-foreground: oklch(0.307 0.021 246.742);
--secondary: oklch(0.368 0.012 246.35);
--secondary-foreground: oklch(0.883 0.006 246.045);
--accent: oklch(0.885 0 180);
--accent-foreground: oklch(0.371 0 168.69);
--destructive: oklch(0.445 0.166 31.911);
--destructive-foreground: oklch(0.914 0.043 29.706);
--ring: oklch(0.833 0.018 246.213);
--chart-1: oklch(0.833 0.018 246.213);
--chart-2: oklch(0.368 0.012 246.35);
--chart-3: oklch(0.885 0 180);
--chart-4: oklch(0.396 0.014 246.358);
--chart-5: oklch(0.833 0.021 246.251);
}