Insubstantial for shadcn/ui

Insubstantial is a shadcn/ui theme built around a muted deep violet primary color (#2f283e) with muted deep green accents (#283e2f). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the muted deep violet primary (#2f283e) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#040307black
Foreground
#06020dblack
#ffffffwhite
Card
#f9f7fdghostwhite
#040307black
Card foreground
#06020dblack
#ffffffwhite
Popover
#f9f7fdghostwhite
#040307black
Popover foreground
#06020dblack
#ffffffwhite
Primary
#2f283edarkslategray
#2f283edarkslategray
Primary foreground
#c8c1d7thistle
#c8c1d7thistle
Secondary
#3e2f28darkslategray
#3e2f28darkslategray
Secondary foreground
#d7c8c1lightgrey
#d7c8c1lightgrey
Muted
#f5eeeblinen
#140e0ablack
Muted foreground
#504f4edarkslategray
#b1b0afdarkgray
Accent
#283e2fdarkslategray
#283e2fdarkslategray
Accent foreground
#c1d7c8lightgrey
#c1d7c8lightgrey
Destructive
#d13a10firebrick
#ef542atomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2f283edarkslategray
#2f283edarkslategray

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button8.05:1AAA
Secondary button7.87:1AAA
Muted text7.11:1AAA
Accent7.61:1AAA
Destructive4.87:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button8.05:1AAA
Secondary button7.87:1AAA
Muted text8.85:1AAA
Accent7.61:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.009 300.613);
  --foreground: oklch(0.109 0.031 300.889);
  --muted: oklch(0.953 0.008 46.758);
  --muted-foreground: oklch(0.428 0.002 46.813);
  --popover: oklch(0.978 0.009 300.613);
  --popover-foreground: oklch(0.109 0.031 300.889);
  --card: oklch(0.978 0.009 300.613);
  --card-foreground: oklch(0.109 0.031 300.889);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.295 0.039 298.515);
  --primary-foreground: oklch(0.824 0.03 300.157);
  --secondary: oklch(0.32 0.025 46.134);
  --secondary-foreground: oklch(0.843 0.019 46.614);
  --accent: oklch(0.34 0.037 154.145);
  --accent-foreground: oklch(0.858 0.03 155.842);
  --destructive: oklch(0.571 0.194 34.64);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.295 0.039 298.515);
  --chart-1: oklch(0.295 0.039 298.515);
  --chart-2: oklch(0.32 0.025 46.134);
  --chart-3: oklch(0.34 0.037 154.145);
  --chart-4: oklch(0.35 0.028 46.116);
  --chart-5: oklch(0.292 0.045 298.137);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.016 301.033);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.013 46.126);
  --muted-foreground: oklch(0.757 0.001 46.836);
  --popover: oklch(0.104 0.016 301.033);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.016 301.033);
  --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.295 0.039 298.515);
  --primary-foreground: oklch(0.824 0.03 300.157);
  --secondary: oklch(0.32 0.025 46.134);
  --secondary-foreground: oklch(0.843 0.019 46.614);
  --accent: oklch(0.34 0.037 154.145);
  --accent-foreground: oklch(0.858 0.03 155.842);
  --destructive: oklch(0.651 0.198 35.733);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.295 0.039 298.515);
  --chart-1: oklch(0.295 0.039 298.515);
  --chart-2: oklch(0.32 0.025 46.134);
  --chart-3: oklch(0.34 0.037 154.145);
  --chart-4: oklch(0.35 0.028 46.116);
  --chart-5: oklch(0.292 0.045 298.137);
}