Insubstantial for shadcn/ui

Insubstantial is a shadcn/ui theme built around a green primary color (#9eb135) with indigo accents (#4735b1). The light mode uses a neutral background (#fefefb). Dark mode keeps the green primary (#9eb135) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fefefbwhite
#030401black
Foreground
#0b0c03black
#fbfcf8snow
Card
#fcfdf7snow
#070703black
Card foreground
#070802black
#fdfdfcwhite
Popover
#fefefbwhite
#030401black
Popover foreground
#0b0c03black
#fbfcf8snow
Primary
#9eb135yellowgreen
#9eb135yellowgreen
Primary foreground
#121406black
#121406black
Secondary
#4735b1darkslateblue
#4735b1darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1dfeclavender
#151320black
Muted foreground
#474455darkslategray
#adaabbdarkgray
Accent
#4735b1darkslateblue
#4735b1darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#e43e01orangered
#fe5f25tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9eb135yellowgreen
#9eb135yellowgreen

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.66:1AAA
Primary button7.77:1AAA
Secondary button8.71:1AAA
Muted text7.17:1AAA
Accent8.71:1AAA
Destructive4.20:1AA Large
Dark mode
Text on background19.96:1AAA
Text on card19.81:1AAA
Primary button7.77:1AAA
Secondary button8.71:1AAA
Muted text8.06:1AAA
Accent8.71:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 113.384);
  --foreground: oklch(0.15 0.023 114.742);
  --muted: oklch(0.909 0.017 292.947);
  --muted-foreground: oklch(0.396 0.028 291.933);
  --popover: oklch(0.996 0.004 113.384);
  --popover-foreground: oklch(0.15 0.023 114.742);
  --card: oklch(0.992 0.008 113.463);
  --card-foreground: oklch(0.131 0.02 114.31);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.722 0.147 117.652);
  --primary-foreground: oklch(0.183 0.027 115.809);
  --secondary: oklch(0.431 0.186 282.09);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.431 0.186 282.09);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.608 0.21 35.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.722 0.147 117.652);
  --chart-1: oklch(0.722 0.147 117.652);
  --chart-2: oklch(0.431 0.186 282.09);
  --chart-3: oklch(0.431 0.186 282.09);
  --chart-4: oklch(0.451 0.196 281.974);
  --chart-5: oklch(0.732 0.152 117.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.011 114.05);
  --foreground: oklch(0.989 0.004 113.39);
  --muted: oklch(0.196 0.025 290.726);
  --muted-foreground: oklch(0.746 0.024 292.695);
  --popover: oklch(0.1 0.011 114.05);
  --popover-foreground: oklch(0.989 0.004 113.39);
  --card: oklch(0.127 0.014 114.05);
  --card-foreground: oklch(0.994 0.002 113.348);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.722 0.147 117.652);
  --primary-foreground: oklch(0.183 0.027 115.809);
  --secondary: oklch(0.431 0.186 282.09);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.431 0.186 282.09);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.686 0.205 38.303);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.722 0.147 117.652);
  --chart-1: oklch(0.722 0.147 117.652);
  --chart-2: oklch(0.431 0.186 282.09);
  --chart-3: oklch(0.431 0.186 282.09);
  --chart-4: oklch(0.451 0.196 281.974);
  --chart-5: oklch(0.732 0.152 117.826);
}