Stepmother for shadcn/ui

Stepmother is a shadcn/ui theme built around a muted light indigo primary color (#bcbdd2) with muted light violet accents (#c6bcd2). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted light indigo primary (#bcbdd2) on an indigo-tinted background (#05060a).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#05060ablack
Foreground
#050510black
#f5f5f9whitesmoke
Card
#f7f7fdghostwhite
#07070dblack
Card foreground
#04040cblack
#f8f9fbghostwhite
Popover
#fbfbfeghostwhite
#05060ablack
Popover foreground
#050510black
#f5f5f9whitesmoke
Primary
#bcbdd2lightsteelblue
#bcbdd2lightsteelblue
Primary foreground
#252637darkslategray
#252637darkslategray
Secondary
#bcc8d2lightsteelblue
#bcc8d2lightsteelblue
Secondary foreground
#252f37darkslategray
#252f37darkslategray
Muted
#dce1e5gainsboro
#1a1f23black
Muted foreground
#606466dimgray
#999c9fdarkgray
Accent
#c6bcd2thistle
#c6bcd2thistle
Accent foreground
#2d2537darkslategray
#2d2537darkslategray
Destructive
#c43708firebrick
#dc3e09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bcbdd2lightsteelblue
#bcbdd2lightsteelblue

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.20:1AAA
Primary button8.02:1AAA
Secondary button8.00:1AAA
Muted text4.53:1AA
Accent8.02:1AAA
Destructive5.39:1AA
Dark mode
Text on background18.65:1AAA
Text on card19.03:1AAA
Primary button8.02:1AAA
Secondary button8.00:1AAA
Muted text6.01:1AA
Accent8.02:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.003 283.912);
  --foreground: oklch(0.124 0.025 278.934);
  --muted: oklch(0.907 0.007 242.3);
  --muted-foreground: oklch(0.5 0.006 242.35);
  --popover: oklch(0.989 0.003 283.912);
  --popover-foreground: oklch(0.124 0.025 278.934);
  --card: oklch(0.979 0.007 283.85);
  --card-foreground: oklch(0.112 0.022 278.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.804 0.03 283.306);
  --primary-foreground: oklch(0.274 0.032 281.712);
  --secondary: oklch(0.826 0.02 242.508);
  --secondary-foreground: oklch(0.299 0.02 243.149);
  --accent: oklch(0.809 0.033 305.909);
  --accent-foreground: oklch(0.281 0.035 304.819);
  --destructive: oklch(0.546 0.184 35.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.03 283.306);
  --chart-1: oklch(0.804 0.03 283.306);
  --chart-2: oklch(0.826 0.02 242.508);
  --chart-3: oklch(0.809 0.033 305.909);
  --chart-4: oklch(0.851 0.017 242.455);
  --chart-5: oklch(0.8 0.034 283.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 281.579);
  --foreground: oklch(0.972 0.005 283.875);
  --muted: oklch(0.236 0.01 242.774);
  --muted-foreground: oklch(0.69 0.005 242.298);
  --popover: oklch(0.121 0.012 281.579);
  --popover-foreground: oklch(0.972 0.005 283.875);
  --card: oklch(0.134 0.014 281.615);
  --card-foreground: oklch(0.982 0.004 283.908);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.804 0.03 283.306);
  --primary-foreground: oklch(0.274 0.032 281.712);
  --secondary: oklch(0.826 0.02 242.508);
  --secondary-foreground: oklch(0.299 0.02 243.149);
  --accent: oklch(0.809 0.033 305.909);
  --accent-foreground: oklch(0.281 0.035 304.819);
  --destructive: oklch(0.595 0.202 35.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.03 283.306);
  --chart-1: oklch(0.804 0.03 283.306);
  --chart-2: oklch(0.826 0.02 242.508);
  --chart-3: oklch(0.809 0.033 305.909);
  --chart-4: oklch(0.851 0.017 242.455);
  --chart-5: oklch(0.8 0.034 283.196);
}