theme white - 1 is a shadcn/ui theme built around a muted deep blue primary color (#2f3741) with muted deep indigo accents (#302f41). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the muted deep blue primary (#2f3741) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #000000black |
| Foreground | #020508black | #fcfcfdwhite |
| Card | #f8fafcghostwhite | #030303black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #fbfcfdwhite | #000000black |
| Popover foreground | #020508black | #fcfcfdwhite |
| Primary | #2f3741darkslategray | #2f3741darkslategray |
| Primary foreground | #cad0d8lightgrey | #cad0d8lightgrey |
| Secondary | #2f4041darkslategray | #2f4041darkslategray |
| Secondary foreground | #cad7d8lightgrey | #cad7d8lightgrey |
| Muted | #eff5f5whitesmoke | #0a0f10black |
| Muted foreground | #546c6ddimgray | #92a9abdarkgray |
| Accent | #302f41darkslategray | #302f41darkslategray |
| Accent foreground | #cbcad8lightgrey | #cbcad8lightgrey |
| Destructive | #c11101firebrick | #fe1b06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ebedeflavender | #1d2125black |
| Input | #ebedeflavender | #1d2125black |
| Ring | #2f3741darkslategray | #2f3741darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.78:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use theme white - 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 254.963);
--foreground: oklch(0.11 0.014 246.313);
--muted: oklch(0.966 0.006 202.149);
--muted-foreground: oklch(0.512 0.028 201.726);
--popover: oklch(0.992 0.002 254.963);
--popover-foreground: oklch(0.11 0.014 246.313);
--card: oklch(0.983 0.003 254.973);
--card-foreground: oklch(0.087 0.011 246.313);
--border: oklch(0.945 0.004 254.978);
--input: oklch(0.945 0.004 254.978);
--primary: oklch(0.333 0.021 255.207);
--primary-foreground: oklch(0.856 0.013 255.035);
--secondary: oklch(0.357 0.022 201.688);
--secondary-foreground: oklch(0.87 0.015 202.037);
--accent: oklch(0.315 0.032 287.47);
--accent-foreground: oklch(0.843 0.02 289.024);
--destructive: oklch(0.514 0.204 30.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.333 0.021 255.207);
--chart-1: oklch(0.333 0.021 255.207);
--chart-2: oklch(0.357 0.022 201.688);
--chart-3: oklch(0.315 0.032 287.47);
--chart-4: oklch(0.388 0.024 201.68);
--chart-5: oklch(0.332 0.025 255.242);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 254.963);
--muted: oklch(0.164 0.009 201.739);
--muted-foreground: oklch(0.717 0.026 201.86);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 254.963);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.244 0.011 255.149);
--input: oklch(0.244 0.011 255.149);
--primary: oklch(0.333 0.021 255.207);
--primary-foreground: oklch(0.856 0.013 255.035);
--secondary: oklch(0.357 0.022 201.688);
--secondary-foreground: oklch(0.87 0.015 202.037);
--accent: oklch(0.315 0.032 287.47);
--accent-foreground: oklch(0.843 0.02 289.024);
--destructive: oklch(0.632 0.251 29.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.333 0.021 255.207);
--chart-1: oklch(0.333 0.021 255.207);
--chart-2: oklch(0.357 0.022 201.688);
--chart-3: oklch(0.315 0.032 287.47);
--chart-4: oklch(0.388 0.024 201.68);
--chart-5: oklch(0.332 0.025 255.242);
}