Substantial for shadcn/ui

Substantial is a shadcn/ui theme built around a deep cyan primary color (#0c1617) with deep blue accents (#0c1117). The light mode uses a neutral background (#fbfefe). Dark mode keeps the deep cyan primary (#0c1617) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#fbfefewhite
#020708black
Foreground
#000000black
#fcfdfdwhite
Card
#f6fdfdmintcream
#040b0cblack
Card foreground
#000000black
#ffffffwhite
Popover
#f6fdfdmintcream
#040b0cblack
Popover foreground
#000000black
#ffffffwhite
Primary
#0c1617black
#0c1617black
Primary foreground
#92bfc4lightsteelblue
#92bfc4lightsteelblue
Secondary
#0c1713black
#0c1713black
Secondary foreground
#92c4b0darkseagreen
#92c4b0darkseagreen
Muted
#dbe6e2gainsboro
#192420black
Muted foreground
#636967dimgray
#969c9adarkgray
Accent
#0c1117black
#0c1117black
Accent foreground
#92a6c4darkgray
#92a6c4darkgray
Destructive
#df3901orangered
#f43e01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c1617black
#0c1617black

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.37:1AAA
Primary button9.14:1AAA
Secondary button9.34:1AAA
Muted text4.37:1AA Large
Accent7.64:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background19.85:1AAA
Text on card19.86:1AAA
Primary button9.14:1AAA
Secondary button9.34:1AAA
Muted text5.71:1AA
Accent7.64:1AAA
Destructive3.80:1AA Large

CSS variables

Paste this into your globals.css to use Substantial in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 204.964);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.013 170.207);
  --muted-foreground: oklch(0.515 0.008 170.148);
  --popover: oklch(0.989 0.007 204.938);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.007 204.938);
  --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.192 0.014 204.688);
  --primary-foreground: oklch(0.774 0.048 204.688);
  --secondary: oklch(0.193 0.018 167.613);
  --secondary-foreground: oklch(0.779 0.06 168.174);
  --accent: oklch(0.175 0.015 258.351);
  --accent-foreground: oklch(0.719 0.05 258.365);
  --destructive: oklch(0.595 0.209 34.802);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.014 204.688);
  --chart-1: oklch(0.192 0.014 204.688);
  --chart-2: oklch(0.193 0.018 167.613);
  --chart-3: oklch(0.175 0.015 258.351);
  --chart-4: oklch(0.232 0.024 167.157);
  --chart-5: oklch(0.193 0.016 204.698);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 202.429);
  --foreground: oklch(0.993 0.001 204.986);
  --muted: oklch(0.249 0.018 168.408);
  --muted-foreground: oklch(0.687 0.008 170.293);
  --popover: oklch(0.14 0.014 202.9);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.014 202.9);
  --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.192 0.014 204.688);
  --primary-foreground: oklch(0.774 0.048 204.688);
  --secondary: oklch(0.193 0.018 167.613);
  --secondary-foreground: oklch(0.779 0.06 168.174);
  --accent: oklch(0.175 0.015 258.351);
  --accent-foreground: oklch(0.719 0.05 258.365);
  --destructive: oklch(0.635 0.224 34.649);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.192 0.014 204.688);
  --chart-1: oklch(0.192 0.014 204.688);
  --chart-2: oklch(0.193 0.018 167.613);
  --chart-3: oklch(0.175 0.015 258.351);
  --chart-4: oklch(0.232 0.024 167.157);
  --chart-5: oklch(0.193 0.016 204.698);
}