white is a shadcn/ui theme built around a light yellow primary color (#eaebd6) with muted light yellow accents (#dcdcd5). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the light yellow primary (#eaebd6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #000000black |
| Foreground | #040501black | #fafaf5whitesmoke |
| Card | #fdfdfcwhite | #000000black |
| Card foreground | #040501black | #fafaf5whitesmoke |
| Popover | #fdfdfcwhite | #000000black |
| Popover foreground | #040501black | #fafaf5whitesmoke |
| Primary | #eaebd6antiquewhite | #eaebd6antiquewhite |
| Primary foreground | #1b1c0dblack | #1b1c0dblack |
| Secondary | #dcdcd5gainsboro | #343531darkslategray |
| Secondary foreground | #45453adarkslategray | #cdcecalightgrey |
| Muted | #e1e2cfgainsboro | #2f301ddarkslategray |
| Muted foreground | #46473edarkslategray | #c1c1b8silver |
| Accent | #dcdcd5gainsboro | #343531darkslategray |
| Accent foreground | #45453adarkslategray | #cdcecalightgrey |
| Destructive | #b44b13sienna | #e76118chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e8e8e3gainsboro | #272820darkslategray |
| Input | #e8e8e3gainsboro | #272820darkslategray |
| Ring | #eaebd6antiquewhite | #eaebd6antiquewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 14.24:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 14.24:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.09:1 | AA |
Paste this into your globals.css to use white in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 108.752);
--foreground: oklch(0.108 0.019 110.965);
--muted: oklch(0.908 0.026 109.224);
--muted-foreground: oklch(0.394 0.015 109.412);
--popover: oklch(0.994 0.002 108.752);
--popover-foreground: oklch(0.108 0.019 110.965);
--card: oklch(0.994 0.002 108.752);
--card-foreground: oklch(0.108 0.019 110.965);
--border: oklch(0.93 0.007 108.858);
--input: oklch(0.93 0.007 108.858);
--primary: oklch(0.934 0.028 109.265);
--primary-foreground: oklch(0.219 0.026 110.792);
--secondary: oklch(0.893 0.009 108.901);
--secondary-foreground: oklch(0.388 0.019 109.588);
--accent: oklch(0.893 0.009 108.901);
--accent-foreground: oklch(0.388 0.019 109.588);
--destructive: oklch(0.544 0.15 43.692);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.028 109.265);
--chart-1: oklch(0.934 0.028 109.265);
--chart-2: oklch(0.893 0.009 108.901);
--chart-3: oklch(0.893 0.009 108.901);
--chart-4: oklch(0.915 0.007 108.859);
--chart-5: oklch(0.936 0.031 109.31);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 108.831);
--muted: oklch(0.302 0.032 110.602);
--muted-foreground: oklch(0.809 0.013 109.001);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.006 108.831);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.006 108.831);
--border: oklch(0.272 0.014 109.643);
--input: oklch(0.272 0.014 109.643);
--primary: oklch(0.934 0.028 109.265);
--primary-foreground: oklch(0.219 0.026 110.792);
--secondary: oklch(0.326 0.005 109.009);
--secondary-foreground: oklch(0.849 0.004 108.801);
--accent: oklch(0.326 0.005 109.009);
--accent-foreground: oklch(0.849 0.004 108.801);
--destructive: oklch(0.652 0.183 43.304);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.934 0.028 109.265);
--chart-1: oklch(0.934 0.028 109.265);
--chart-2: oklch(0.326 0.005 109.009);
--chart-3: oklch(0.326 0.005 109.009);
--chart-4: oklch(0.356 0.006 109.017);
--chart-5: oklch(0.936 0.031 109.31);
}