Stepdaughter for shadcn/ui

Stepdaughter is a shadcn/ui theme built around a near-black primary color (#020902) with near-black accents (#020905). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the near-black primary (#020902) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f7fdf6mintcream
#020401black
Foreground
#000000black
#f7f8f7whitesmoke
Card
#f3fdf2honeydew
#030703black
Card foreground
#000000black
#f9faf9snow
Popover
#f7fdf6mintcream
#020401black
Popover foreground
#000000black
#f7f8f7whitesmoke
Primary
#020902black
#020902black
Primary foreground
#2cb422limegreen
#2cb422limegreen
Secondary
#060902black
#060902black
Secondary foreground
#75b422olivedrab
#75b422olivedrab
Muted
#e1e3degainsboro
#1f211cblack
Muted foreground
#464f3bdarkslategray
#bcc4b0silver
Accent
#020905black
#020905black
Accent foreground
#22b461mediumseagreen
#22b461mediumseagreen
Destructive
#c13610firebrick
#ee592ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020902black
#020902black

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.09:1AAA
Primary button7.35:1AAA
Secondary button7.94:1AAA
Muted text6.62:1AA
Accent7.46:1AAA
Destructive5.50:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.34:1AAA
Primary button7.35:1AAA
Secondary button7.94:1AAA
Muted text9.04:1AAA
Accent7.46:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.012 143.573);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.006 125.829);
  --muted-foreground: oklch(0.414 0.035 126.921);
  --popover: oklch(0.988 0.012 143.573);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.018 143.541);
  --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.124 0.028 141.554);
  --primary-foreground: oklch(0.673 0.211 142.128);
  --secondary: oklch(0.13 0.023 124.728);
  --secondary-foreground: oklch(0.701 0.18 131.201);
  --accent: oklch(0.125 0.02 161.785);
  --accent-foreground: oklch(0.678 0.168 152.224);
  --destructive: oklch(0.541 0.182 34.796);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.124 0.028 141.554);
  --chart-1: oklch(0.124 0.028 141.554);
  --chart-2: oklch(0.13 0.023 124.728);
  --chart-3: oklch(0.125 0.02 161.785);
  --chart-4: oklch(0.184 0.036 127.704);
  --chart-5: oklch(0.124 0.029 141.459);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.015 142.241);
  --foreground: oklch(0.978 0.003 143.621);
  --muted: oklch(0.243 0.008 126.207);
  --muted-foreground: oklch(0.809 0.03 126.242);
  --popover: oklch(0.096 0.015 142.241);
  --popover-foreground: oklch(0.978 0.003 143.621);
  --card: oklch(0.121 0.019 142.241);
  --card-foreground: oklch(0.985 0.002 143.626);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.124 0.028 141.554);
  --primary-foreground: oklch(0.673 0.211 142.128);
  --secondary: oklch(0.13 0.023 124.728);
  --secondary-foreground: oklch(0.701 0.18 131.201);
  --accent: oklch(0.125 0.02 161.785);
  --accent-foreground: oklch(0.678 0.168 152.224);
  --destructive: oklch(0.655 0.192 35.928);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.124 0.028 141.554);
  --chart-1: oklch(0.124 0.028 141.554);
  --chart-2: oklch(0.13 0.023 124.728);
  --chart-3: oklch(0.125 0.02 161.785);
  --chart-4: oklch(0.184 0.036 127.704);
  --chart-5: oklch(0.124 0.029 141.459);
}