Gray Matter Dark is a shadcn/ui theme built around a neutral gray primary color (#616161) with neutral gray accents (#413e41). The light mode uses a neutral background (#1a191a). Dark mode keeps the neutral gray primary (#616161) on a neutral background (#1a191a).
| Token | Light | Dark |
|---|---|---|
| Background | #1a191ablack | #1a191ablack |
| Foreground | #bfbfbfsilver | #bfbfbfsilver |
| Card | #151415black | #151415black |
| Card foreground | #cccccclightgrey | #cccccclightgrey |
| Popover | #121112black | #121112black |
| Popover foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Primary | #616161dimgray | #616161dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #2b222bdarkslategray | #2b222bdarkslategray |
| Muted foreground | #b09bb0darkgray | #b09bb0darkgray |
| Accent | #413e41darkslategray | #413e41darkslategray |
| Accent foreground | #dad8dagainsboro | #dad8dagainsboro |
| Destructive | #f8200dred | #f8200dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #262626darkslategray | #262626darkslategray |
| Input | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Ring | #616161dimgray | #616161dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.53:1 | AAA |
| Text on card | 11.44:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.04:1 | AA Large |
| Text on background | 9.53:1 | AAA |
| Text on card | 11.44:1 | AAA |
| Primary button | 6.20:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Gray Matter Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.215 0.003 325.664);
--foreground: oklch(0.805 0 169.695);
--muted: oklch(0.265 0.021 326.162);
--muted-foreground: oklch(0.715 0.039 325.977);
--popover: oklch(0.181 0.002 325.652);
--popover-foreground: oklch(0.885 0 180);
--card: oklch(0.193 0.002 325.657);
--card-foreground: oklch(0.845 0 164.055);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.492 0 180);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.369 0.005 325.688);
--accent-foreground: oklch(0.884 0.003 325.599);
--destructive: oklch(0.623 0.243 30.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.492 0 180);
--chart-1: oklch(0.492 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.369 0.005 325.688);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.487 0.007 17.413);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.215 0.003 325.664);
--foreground: oklch(0.805 0 169.695);
--muted: oklch(0.265 0.021 326.162);
--muted-foreground: oklch(0.715 0.039 325.977);
--popover: oklch(0.181 0.002 325.652);
--popover-foreground: oklch(0.885 0 180);
--card: oklch(0.193 0.002 325.657);
--card-foreground: oklch(0.845 0 164.055);
--border: oklch(0.27 0 180);
--input: oklch(0.301 0 189.462);
--primary: oklch(0.492 0 180);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.369 0.005 325.688);
--accent-foreground: oklch(0.884 0.003 325.599);
--destructive: oklch(0.623 0.243 30.061);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.492 0 180);
--chart-1: oklch(0.492 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.369 0.005 325.688);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.487 0.007 17.413);
}