Substantial is a shadcn/ui theme built around a light yellow primary color (#fbfbe5) with light purple accents (#fbe5fb). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the light yellow primary (#fbfbe5) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #070703black |
| Foreground | #0b0b04black | #ffffffwhite |
| Card | #fafaf5whitesmoke | #0b0b05black |
| Card foreground | #080803black | #ffffffwhite |
| Popover | #fbfbf8snow | #070703black |
| Popover foreground | #0b0b04black | #ffffffwhite |
| Primary | #fbfbe5oldlace | #fbfbe5oldlace |
| Primary foreground | #3d3d0adarkolivegreen | #3d3d0adarkolivegreen |
| Secondary | #e5fbfblightcyan | #e5fbfblightcyan |
| Secondary foreground | #0a3d3ddarkslategray | #0a3d3ddarkslategray |
| Muted | #d9dedegainsboro | #212626darkslategray |
| Muted foreground | #484c4cdarkslategray | #b3b7b7silver |
| Accent | #fbe5fblavenderblush | #fbe5fblavenderblush |
| Accent foreground | #941994darkmagenta | #941994darkmagenta |
| Destructive | #c50a07firebrick | #f83d3atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbfbe5oldlace | #fbfbe5oldlace |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 10.67:1 | AAA |
| Secondary button | 11.13:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.17:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 10.67:1 | AAA |
| Secondary button | 11.13:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Substantial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 106.473);
--foreground: oklch(0.149 0.018 108.448);
--muted: oklch(0.896 0.005 197.06);
--muted-foreground: oklch(0.413 0.006 196.932);
--popover: oklch(0.989 0.004 106.473);
--popover-foreground: oklch(0.149 0.018 108.448);
--card: oklch(0.983 0.006 106.51);
--card-foreground: oklch(0.13 0.016 108.442);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.981 0.028 106.912);
--primary-foreground: oklch(0.349 0.068 109.476);
--secondary: oklch(0.971 0.023 196.785);
--secondary-foreground: oklch(0.329 0.051 194.965);
--accent: oklch(0.945 0.037 325.865);
--accent-foreground: oklch(0.478 0.202 328.184);
--destructive: oklch(0.52 0.209 29.095);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.981 0.028 106.912);
--chart-1: oklch(0.981 0.028 106.912);
--chart-2: oklch(0.971 0.023 196.785);
--chart-3: oklch(0.945 0.037 325.865);
--chart-4: oklch(0.985 0.011 196.971);
--chart-5: oklch(0.982 0.03 106.932);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.012 108.04);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.007 196.725);
--muted-foreground: oklch(0.777 0.005 197.054);
--popover: oklch(0.127 0.012 108.04);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.014 108.041);
--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.981 0.028 106.912);
--primary-foreground: oklch(0.349 0.068 109.476);
--secondary: oklch(0.971 0.023 196.785);
--secondary-foreground: oklch(0.329 0.051 194.965);
--accent: oklch(0.945 0.037 325.865);
--accent-foreground: oklch(0.478 0.202 328.184);
--destructive: oklch(0.645 0.223 26.835);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.981 0.028 106.912);
--chart-1: oklch(0.981 0.028 106.912);
--chart-2: oklch(0.971 0.023 196.785);
--chart-3: oklch(0.945 0.037 325.865);
--chart-4: oklch(0.985 0.011 196.971);
--chart-5: oklch(0.982 0.03 106.932);
}