more comfy grey is a shadcn/ui theme built around a neutral gray primary color (#5d6069) with neutral gray accents (#60695d). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#5d6069) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #03050dblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #05060bblack |
| Card foreground | #020308black | #ffffffwhite |
| Popover | #fcfcfcsnow | #05060bblack |
| Popover foreground | #020308black | #ffffffwhite |
| Primary | #5d6069dimgray | #5d6069dimgray |
| Primary foreground | #fcfcfdwhite | #fcfcfdwhite |
| Secondary | #695d60dimgray | #695d60dimgray |
| Secondary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Muted | #e8dee0gainsboro | #211719black |
| Muted foreground | #453a3cdarkslategray | #c5babcsilver |
| Accent | #60695ddimgray | #60695ddimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b2b0bsaddlebrown | #d15315chocolate |
| Destructive foreground | #f7c8b0peachpuff | #ffffffwhite |
| Border | #e2e3e9gainsboro | #1d1e26black |
| Input | #e2e3e9gainsboro | #1d1e26black |
| Ring | #5d6069dimgray | #5d6069dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 8.30:1 | AAA |
| Accent | 5.68:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.99:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.10:1 | AA |
| Muted text | 9.24:1 | AAA |
| Accent | 5.68:1 | AA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use more comfy grey in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.022 266.807);
--muted: oklch(0.909 0.011 3.502);
--muted-foreground: oklch(0.361 0.017 4.397);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.1 0.019 266.598);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.019 266.598);
--border: oklch(0.917 0.008 274.929);
--input: oklch(0.917 0.008 274.929);
--primary: oklch(0.49 0.015 274.626);
--primary-foreground: oklch(0.992 0 275.03);
--secondary: oklch(0.492 0.016 4.04);
--secondary-foreground: oklch(0.992 0 3.193);
--accent: oklch(0.51 0.022 139.434);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.374 0.101 43.263);
--destructive-foreground: oklch(0.868 0.063 47.974);
--ring: oklch(0.49 0.015 274.626);
--chart-1: oklch(0.49 0.015 274.626);
--chart-2: oklch(0.492 0.016 4.04);
--chart-3: oklch(0.51 0.022 139.434);
--chart-4: oklch(0.519 0.017 4.048);
--chart-5: oklch(0.484 0.023 274.39);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.011 270.775);
--foreground: oklch(0.991 0.002 275.014);
--muted: oklch(0.219 0.016 5.083);
--muted-foreground: oklch(0.798 0.013 3.634);
--popover: oklch(0.122 0.012 270.787);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.012 270.787);
--card-foreground: oklch(1 0 180);
--border: oklch(0.238 0.014 274.202);
--input: oklch(0.238 0.014 274.202);
--primary: oklch(0.49 0.015 274.626);
--primary-foreground: oklch(0.992 0 275.03);
--secondary: oklch(0.492 0.016 4.04);
--secondary-foreground: oklch(0.992 0 3.193);
--accent: oklch(0.51 0.022 139.434);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.601 0.172 42.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.49 0.015 274.626);
--chart-1: oklch(0.49 0.015 274.626);
--chart-2: oklch(0.492 0.016 4.04);
--chart-3: oklch(0.51 0.022 139.434);
--chart-4: oklch(0.519 0.017 4.048);
--chart-5: oklch(0.484 0.023 274.39);
}