comfy grey is a shadcn/ui theme built around a neutral gray primary color (#5e6861) with neutral gray accents (#68615e). The light mode uses a neutral background (#fbfefc). Dark mode keeps the neutral gray primary (#5e6861) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #000000black | #f6f9f7whitesmoke |
| Card | #f7fcf9mintcream | #030303black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #fbfefcwhite | #000000black |
| Popover foreground | #000000black | #f6f9f7whitesmoke |
| Primary | #5e6861dimgray | #5e6861dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #615e68dimgray | #615e68dimgray |
| Secondary foreground | #fcfcfdwhite | #fcfcfdwhite |
| Muted | #f1f0f4whitesmoke | #0c0b0fblack |
| Muted foreground | #423d4ddarkslategray | #b7b2c2silver |
| Accent | #68615edimgray | #68615edimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #881f01darkred | #fd4d1corangered |
| Destructive foreground | #fecbbdpeachpuff | #ffffffwhite |
| Border | #ebefecwhitesmoke | #161d18black |
| Input | #ebefecwhitesmoke | #161d18black |
| Ring | #5e6861dimgray | #5e6861dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.65:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 9.25:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 9.50:1 | AAA |
| Accent | 6.02:1 | AA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use comfy grey in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 155.803);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.005 299.946);
--muted-foreground: oklch(0.37 0.029 298.721);
--popover: oklch(0.994 0.003 155.803);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.007 155.736);
--card-foreground: oklch(0 0 0);
--border: oklch(0.949 0.007 155.737);
--input: oklch(0.949 0.007 155.737);
--primary: oklch(0.508 0.016 155.244);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.49 0.016 299.485);
--secondary-foreground: oklch(0.992 0 300.032);
--accent: oklch(0.5 0.01 44.785);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.413 0.145 34.537);
--destructive-foreground: oklch(0.884 0.061 35.974);
--ring: oklch(0.508 0.016 155.244);
--chart-1: oklch(0.508 0.016 155.244);
--chart-2: oklch(0.49 0.016 299.485);
--chart-3: oklch(0.5 0.01 44.785);
--chart-4: oklch(0.516 0.017 299.48);
--chart-5: oklch(0.512 0.026 154.867);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.005 155.781);
--muted: oklch(0.152 0.008 299.116);
--muted-foreground: oklch(0.772 0.024 299.518);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.005 155.781);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.003 155.811);
--border: oklch(0.221 0.013 154.67);
--input: oklch(0.221 0.013 154.67);
--primary: oklch(0.508 0.016 155.244);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.49 0.016 299.485);
--secondary-foreground: oklch(0.992 0 300.032);
--accent: oklch(0.5 0.01 44.785);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.664 0.22 35);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.508 0.016 155.244);
--chart-1: oklch(0.508 0.016 155.244);
--chart-2: oklch(0.49 0.016 299.485);
--chart-3: oklch(0.5 0.01 44.785);
--chart-4: oklch(0.516 0.017 299.48);
--chart-5: oklch(0.512 0.026 154.867);
}