grey/white is a shadcn/ui theme built around a neutral gray primary color (#b9b9bc) with muted blue accents (#b3b6cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b9b9bc) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #03050cblack | #f9f9fbghostwhite |
| Card | #fcfcfcsnow | #020308black |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #03050cblack | #f9f9fbghostwhite |
| Primary | #b9b9bcsilver | #b9b9bcsilver |
| Primary foreground | #202122black | #202122black |
| Secondary | #c7c9d6lightgrey | #28282adarkslategray |
| Secondary foreground | #2e303edarkslategray | #c0c0c4silver |
| Muted | #d6d9eagainsboro | #151729black |
| Muted foreground | #54555fdimgray | #a0a2abdarkgray |
| Accent | #b3b6ccsilver | #31323adarkslategray |
| Accent foreground | #1f212edarkslategray | #cbccd2lightgrey |
| Destructive | #c2320afirebrick | #f5653dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e8e8eelavender | #1c1e26black |
| Input | #e8e8eelavender | #1c1e26black |
| Ring | #b9b9bcsilver | #b9b9bcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 5.27:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use grey/white in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.02 273.236);
--muted: oklch(0.888 0.024 278.919);
--muted-foreground: oklch(0.453 0.015 278.815);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.02 273.236);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.017 273.175);
--border: oklch(0.933 0.007 279.225);
--input: oklch(0.933 0.007 279.225);
--primary: oklch(0.787 0.003 279.276);
--primary-foreground: oklch(0.247 0.002 279.208);
--secondary: oklch(0.839 0.018 279.018);
--secondary-foreground: oklch(0.312 0.025 277.994);
--accent: oklch(0.78 0.032 278.7);
--accent-foreground: oklch(0.25 0.025 277.611);
--destructive: oklch(0.537 0.186 34.349);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.787 0.003 279.276);
--chart-1: oklch(0.787 0.003 279.276);
--chart-2: oklch(0.839 0.018 279.018);
--chart-3: oklch(0.78 0.032 278.7);
--chart-4: oklch(0.865 0.015 279.081);
--chart-5: oklch(0.782 0.008 279.177);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.014 273.011);
--foreground: oklch(0.983 0.002 279.307);
--muted: oklch(0.212 0.035 276.339);
--muted-foreground: oklch(0.713 0.013 279.051);
--popover: oklch(0.079 0.014 273.011);
--popover-foreground: oklch(0.983 0.002 279.307);
--card: oklch(0.1 0.018 273.011);
--card-foreground: oklch(0.991 0.001 279.324);
--border: oklch(0.235 0.017 278.172);
--input: oklch(0.235 0.017 278.172);
--primary: oklch(0.787 0.003 279.276);
--primary-foreground: oklch(0.247 0.002 279.208);
--secondary: oklch(0.277 0.004 279.126);
--secondary-foreground: oklch(0.81 0.004 279.258);
--accent: oklch(0.321 0.013 278.686);
--accent-foreground: oklch(0.845 0.009 279.173);
--destructive: oklch(0.682 0.185 36.195);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.787 0.003 279.276);
--chart-1: oklch(0.787 0.003 279.276);
--chart-2: oklch(0.277 0.004 279.126);
--chart-3: oklch(0.321 0.013 278.686);
--chart-4: oklch(0.307 0.005 279.117);
--chart-5: oklch(0.782 0.008 279.177);
}