Step-mother for shadcn/ui

Step-mother is a shadcn/ui theme built around a green primary color (#86db4d) with neutral gray accents (#e5e7e4). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#86db4d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#000000black
Foreground
#000000black
#f7f9f6whitesmoke
Card
#f6fcf3whitesmoke
#030303black
Card foreground
#000000black
#fafbf9snow
Popover
#f9fdf7mintcream
#000000black
Popover foreground
#000000black
#f7f9f6whitesmoke
Primary
#86db4dyellowgreen
#86db4dyellowgreen
Primary foreground
#000000black
#000000black
Secondary
#e5e7e4gainsboro
#1b2117black
Secondary foreground
#4c5049darkslategray
#b3c2a8darkgray
Muted
#d8dcd6gainsboro
#262923darkslategray
Muted foreground
#485341darkslategray
#b3beacdarkgray
Accent
#e5e7e4gainsboro
#1b2117black
Accent foreground
#4c5049darkslategray
#b3c2a8darkgray
Destructive
#a3250ffirebrick
#ec4e32tomato
Destructive foreground
#fdebe8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#86db4dyellowgreen
#86db4dyellowgreen

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.14:1AAA
Primary button12.20:1AAA
Secondary button6.61:1AA
Muted text5.83:1AA
Accent6.61:1AA
Destructive6.41:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.92:1AAA
Primary button12.20:1AAA
Secondary button8.78:1AAA
Muted text7.62:1AAA
Accent8.78:1AAA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 132.426);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.009 132.436);
  --muted-foreground: oklch(0.427 0.032 132.943);
  --popover: oklch(0.989 0.009 132.426);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.013 132.461);
  --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.808 0.193 135.087);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.925 0.004 132.389);
  --secondary-foreground: oklch(0.426 0.014 132.604);
  --accent: oklch(0.925 0.004 132.389);
  --accent-foreground: oklch(0.426 0.014 132.604);
  --destructive: oklch(0.471 0.165 32.202);
  --destructive-foreground: oklch(0.953 0.02 29.552);
  --ring: oklch(0.808 0.193 135.087);
  --chart-1: oklch(0.808 0.193 135.087);
  --chart-2: oklch(0.925 0.004 132.389);
  --chart-3: oklch(0.925 0.004 132.389);
  --chart-4: oklch(0.948 0.003 132.379);
  --chart-5: oklch(0.815 0.2 135.229);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.004 132.387);
  --muted: oklch(0.276 0.012 132.698);
  --muted-foreground: oklch(0.788 0.027 132.623);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.004 132.387);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.003 132.377);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.808 0.193 135.087);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.238 0.02 133.016);
  --secondary-foreground: oklch(0.794 0.039 132.732);
  --accent: oklch(0.238 0.02 133.016);
  --accent-foreground: oklch(0.794 0.039 132.732);
  --destructive: oklch(0.639 0.199 32.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.808 0.193 135.087);
  --chart-1: oklch(0.808 0.193 135.087);
  --chart-2: oklch(0.238 0.02 133.016);
  --chart-3: oklch(0.238 0.02 133.016);
  --chart-4: oklch(0.273 0.024 133.066);
  --chart-5: oklch(0.815 0.2 135.229);
}