Step-mother for shadcn/ui

Step-mother is a shadcn/ui theme built around a muted deep teal primary color (#404f4e) with muted deep blue accents (#40494f). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted deep teal primary (#404f4e) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#fbfefewhite
#020403black
Foreground
#000000black
#f7f8f8whitesmoke
Card
#f7fdfcmintcream
#030707black
Card foreground
#000000black
#f9fafaghostwhite
Popover
#fbfefewhite
#020403black
Popover foreground
#000000black
#f7f8f8whitesmoke
Primary
#404f4edarkslategray
#404f4edarkslategray
Primary foreground
#dde4e3gainsboro
#dde4e3gainsboro
Secondary
#404f46darkslategray
#404f46darkslategray
Secondary foreground
#dde4e0gainsboro
#dde4e0gainsboro
Muted
#e3eee7lavender
#111c16black
Muted foreground
#5f6763dimgray
#98a09bdarkgray
Accent
#40494fdarkslategray
#40494fdarkslategray
Accent foreground
#dde1e4gainsboro
#dde1e4gainsboro
Destructive
#b62107firebrick
#dd2808orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#404f4edarkslategray
#404f4edarkslategray

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 button6.64:1AA
Secondary button6.68:1AA
Muted text4.87:1AA
Accent7.02:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.35:1AAA
Primary button6.64:1AA
Secondary button6.68:1AA
Muted text6.49:1AA
Accent7.02:1AAA
Destructive4.77:1AA

CSS variables

Paste this into your globals.css to use Step-mother in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 191.186);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.938 0.014 160.645);
  --muted-foreground: oklch(0.507 0.012 160.437);
  --popover: oklch(0.994 0.003 191.186);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.006 191.12);
  --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.415 0.02 190.184);
  --primary-foreground: oklch(0.913 0.007 191.075);
  --secondary: oklch(0.412 0.025 159.498);
  --secondary-foreground: oklch(0.912 0.009 160.781);
  --accent: oklch(0.399 0.016 238.967);
  --accent-foreground: oklch(0.907 0.006 238.452);
  --destructive: oklch(0.502 0.187 31.768);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.415 0.02 190.184);
  --chart-1: oklch(0.415 0.02 190.184);
  --chart-2: oklch(0.412 0.025 159.498);
  --chart-3: oklch(0.399 0.016 238.967);
  --chart-4: oklch(0.441 0.027 159.474);
  --chart-5: oklch(0.419 0.025 189.92);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 190.587);
  --foreground: oklch(0.978 0.002 191.21);
  --muted: oklch(0.215 0.02 158.556);
  --muted-foreground: oklch(0.696 0.011 160.628);
  --popover: oklch(0.097 0.008 190.587);
  --popover-foreground: oklch(0.978 0.002 191.21);
  --card: oklch(0.122 0.01 190.587);
  --card-foreground: oklch(0.986 0.001 191.223);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.415 0.02 190.184);
  --primary-foreground: oklch(0.913 0.007 191.075);
  --secondary: oklch(0.412 0.025 159.498);
  --secondary-foreground: oklch(0.912 0.009 160.781);
  --accent: oklch(0.399 0.016 238.967);
  --accent-foreground: oklch(0.907 0.006 238.452);
  --destructive: oklch(0.579 0.218 31.612);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.415 0.02 190.184);
  --chart-1: oklch(0.415 0.02 190.184);
  --chart-2: oklch(0.412 0.025 159.498);
  --chart-3: oklch(0.399 0.016 238.967);
  --chart-4: oklch(0.441 0.027 159.474);
  --chart-5: oklch(0.419 0.025 189.92);
}