Substantial is a shadcn/ui theme built around a vivid light blue primary color (#c5d7fb) with vivid light yellow accents (#fbe9c5). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid light blue primary (#c5d7fb) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #010204black |
| Foreground | #000000black | #f5f7f9whitesmoke |
| Card | #fbfcfewhite | #010204black |
| Card foreground | #000000black | #f5f7f9whitesmoke |
| Popover | #fbfcfewhite | #010204black |
| Popover foreground | #000000black | #f5f7f9whitesmoke |
| Primary | #c5d7fbpowderblue | #c5d7fbpowderblue |
| Primary foreground | #093286midnightblue | #093286midnightblue |
| Secondary | #fbe9c5bisque | #fbe9c5bisque |
| Secondary foreground | #261a02black | #261a02black |
| Muted | #f0eeealinen | #15130fblack |
| Muted foreground | #55514adarkolivegreen | #b5b2aadarkgray |
| Accent | #fbe9c5bisque | #fbe9c5bisque |
| Accent foreground | #261a02black | #261a02black |
| Destructive | #640502maroon | #fb1b13red |
| Destructive foreground | #fd9e9blightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c5d7fbpowderblue | #c5d7fbpowderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 14.31:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 14.31:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 14.31:1 | AAA |
| Muted text | 8.77:1 | AAA |
| Accent | 14.31:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Substantial in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 264.545);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.005 84.566);
--muted-foreground: oklch(0.436 0.013 84.593);
--popover: oklch(0.991 0.002 264.545);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 264.545);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.879 0.053 264.249);
--primary-foreground: oklch(0.353 0.147 262.169);
--secondary: oklch(0.94 0.051 84.549);
--secondary-foreground: oklch(0.229 0.043 82.805);
--accent: oklch(0.94 0.051 84.549);
--accent-foreground: oklch(0.229 0.043 82.805);
--destructive: oklch(0.32 0.127 29.73);
--destructive-foreground: oklch(0.795 0.115 22.098);
--ring: oklch(0.879 0.053 264.249);
--chart-1: oklch(0.879 0.053 264.249);
--chart-2: oklch(0.94 0.051 84.549);
--chart-3: oklch(0.94 0.051 84.549);
--chart-4: oklch(0.955 0.038 84.584);
--chart-5: oklch(0.878 0.055 264.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 258.053);
--foreground: oklch(0.975 0.004 264.54);
--muted: oklch(0.187 0.008 84.578);
--muted-foreground: oklch(0.764 0.011 84.583);
--popover: oklch(0.086 0.009 258.053);
--popover-foreground: oklch(0.975 0.004 264.54);
--card: oklch(0.086 0.009 258.053);
--card-foreground: oklch(0.975 0.004 264.54);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.879 0.053 264.249);
--primary-foreground: oklch(0.353 0.147 262.169);
--secondary: oklch(0.94 0.051 84.549);
--secondary-foreground: oklch(0.229 0.043 82.805);
--accent: oklch(0.94 0.051 84.549);
--accent-foreground: oklch(0.229 0.043 82.805);
--destructive: oklch(0.628 0.248 29.153);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.879 0.053 264.249);
--chart-1: oklch(0.879 0.053 264.249);
--chart-2: oklch(0.94 0.051 84.549);
--chart-3: oklch(0.94 0.051 84.549);
--chart-4: oklch(0.955 0.038 84.584);
--chart-5: oklch(0.878 0.055 264.235);
}