Substantial is a shadcn/ui theme built around a neutral gray primary color (#414448) with muted light blue accents (#c5cedd). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#414448) on a blue-tinted background (#040810).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040810black |
| Foreground | #020408black | #ffffffwhite |
| Card | #ffffffwhite | #040810black |
| Card foreground | #020408black | #ffffffwhite |
| Popover | #ffffffwhite | #040810black |
| Popover foreground | #020408black | #ffffffwhite |
| Primary | #414448darkslategray | #414448darkslategray |
| Primary foreground | #dcdde0gainsboro | #dcdde0gainsboro |
| Secondary | #e4e7eclavender | #1d2026black |
| Secondary foreground | #424b5cdarkslategray | #b1b7c4silver |
| Muted | #d9e0ecgainsboro | #131926black |
| Muted foreground | #44464bdarkslategray | #b4b7bbsilver |
| Accent | #c5ceddlightgrey | #2a3241darkslategray |
| Accent foreground | #2a3447darkslategray | #c4cbd9lightgrey |
| Destructive | #831507maroon | #f4462ftomato |
| Destructive foreground | #fcc7c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #414448darkslategray | #414448darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 8.73:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Substantial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.107 0.015 254.149);
--muted: oklch(0.906 0.018 263.007);
--muted-foreground: oklch(0.395 0.008 263.004);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.107 0.015 254.149);
--card: oklch(1 0 180);
--card-foreground: oklch(0.107 0.015 254.149);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.385 0.008 263.004);
--primary-foreground: oklch(0.898 0.003 263.048);
--secondary: oklch(0.927 0.007 263.039);
--secondary-foreground: oklch(0.412 0.032 262.747);
--accent: oklch(0.848 0.023 262.983);
--accent-foreground: oklch(0.323 0.037 262.52);
--destructive: oklch(0.395 0.146 31.058);
--destructive-foreground: oklch(0.874 0.061 27.066);
--ring: oklch(0.385 0.008 263.004);
--chart-1: oklch(0.385 0.008 263.004);
--chart-2: oklch(0.927 0.007 263.039);
--chart-3: oklch(0.848 0.023 262.983);
--chart-4: oklch(0.951 0.005 263.045);
--chart-5: oklch(0.383 0.013 262.958);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.02 256.959);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.027 262.448);
--muted-foreground: oklch(0.777 0.007 263.036);
--popover: oklch(0.135 0.02 256.959);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.02 256.959);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.008 263.004);
--primary-foreground: oklch(0.898 0.003 263.048);
--secondary: oklch(0.242 0.013 262.882);
--secondary-foreground: oklch(0.779 0.019 262.993);
--accent: oklch(0.317 0.028 262.673);
--accent-foreground: oklch(0.842 0.02 262.996);
--destructive: oklch(0.644 0.214 30.922);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.008 263.004);
--chart-1: oklch(0.385 0.008 263.004);
--chart-2: oklch(0.242 0.013 262.882);
--chart-3: oklch(0.317 0.028 262.673);
--chart-4: oklch(0.272 0.015 262.867);
--chart-5: oklch(0.383 0.013 262.958);
}