Substantial is a shadcn/ui theme built around a muted indigo primary color (#8686a7) with muted yellow accents (#a7a786). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#8686a7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #040316black | #ffffffwhite |
| Card | #f7f7fcghostwhite | #030303black |
| Card foreground | #030312black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #040316black | #ffffffwhite |
| Primary | #8686a7lightslategray | #8686a7lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #a7a786darkseagreen | #a7a786darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #f1f2e9linen | #16160dblack |
| Muted foreground | #535350darkslategray | #afafacdarkgray |
| Accent | #a7a786darkseagreen | #a7a786darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #8f290asaddlebrown | #f15e32tomato |
| Destructive foreground | #fcdacfbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8686a7lightslategray | #8686a7lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 8.51:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Substantial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.003 287.107);
--foreground: oklch(0.12 0.045 278.514);
--muted: oklch(0.957 0.012 107.393);
--muted-foreground: oklch(0.442 0.005 107.385);
--popover: oklch(0.989 0.003 287.107);
--popover-foreground: oklch(0.12 0.045 278.514);
--card: oklch(0.979 0.007 287.043);
--card-foreground: oklch(0.11 0.039 279.13);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.05 285.641);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.72 0.047 108.303);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.72 0.047 108.303);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.437 0.142 35.769);
--destructive-foreground: oklch(0.913 0.041 37.604);
--ring: oklch(0.632 0.05 285.641);
--chart-1: oklch(0.632 0.05 285.641);
--chart-2: oklch(0.72 0.047 108.303);
--chart-3: oklch(0.72 0.047 108.303);
--chart-4: oklch(0.741 0.043 108.19);
--chart-5: oklch(0.624 0.06 285.302);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.017 108.645);
--muted-foreground: oklch(0.753 0.005 107.281);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.632 0.05 285.641);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.72 0.047 108.303);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.72 0.047 108.303);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.667 0.19 37.004);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.632 0.05 285.641);
--chart-1: oklch(0.632 0.05 285.641);
--chart-2: oklch(0.72 0.047 108.303);
--chart-3: oklch(0.72 0.047 108.303);
--chart-4: oklch(0.741 0.043 108.19);
--chart-5: oklch(0.624 0.06 285.302);
}