Substantial for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.76:1AAA
Text on card19.23:1AAA
Primary button5.97:1AA
Secondary button8.51:1AAA
Muted text6.83:1AA
Accent8.51:1AAA
Destructive6.45:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.97:1AA
Secondary button8.51:1AAA
Muted text8.24:1AAA
Accent8.51:1AAA
Destructive6.39:1AA

CSS variables

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);
}