Step-father for shadcn/ui

Step-father is a shadcn/ui theme built around a muted violet primary color (#aba1b5) with muted green accents (#abb5a1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#aba1b5) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#0d0614black
#fcfcfdwhite
Card
#ffffffwhite
#030104black
Card foreground
#0d0614black
#fcfcfdwhite
Popover
#ffffffwhite
#030104black
Popover foreground
#0d0614black
#fcfcfdwhite
Primary
#aba1b5darkgray
#aba1b5darkgray
Primary foreground
#121014black
#121014black
Secondary
#abb5a1darkgray
#abb5a1darkgray
Secondary foreground
#121410black
#121410black
Muted
#e6f0dbbeige
#1a240fblack
Muted foreground
#546148darkolivegreen
#abb79edarkgray
Accent
#abb5a1darkgray
#abb5a1darkgray
Accent foreground
#121410black
#121410black
Destructive
#9c3907saddlebrown
#e5530borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aba1b5darkgray
#aba1b5darkgray

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.63:1AAA
Secondary button8.68:1AAA
Muted text5.59:1AA
Accent8.68:1AAA
Destructive7.00:1AAA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.63:1AAA
Secondary button8.68:1AAA
Muted text7.70:1AAA
Accent8.68:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.14 0.034 306.805);
  --muted: oklch(0.941 0.029 128.81);
  --muted-foreground: oklch(0.474 0.042 129.512);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.14 0.034 306.805);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.14 0.034 306.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.723 0.031 307.987);
  --primary-foreground: oklch(0.176 0.009 307.874);
  --secondary: oklch(0.759 0.03 128.915);
  --secondary-foreground: oklch(0.187 0.009 129.017);
  --accent: oklch(0.759 0.03 128.915);
  --accent-foreground: oklch(0.187 0.009 129.017);
  --destructive: oklch(0.479 0.142 41.192);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.723 0.031 307.987);
  --chart-1: oklch(0.723 0.031 307.987);
  --chart-2: oklch(0.759 0.03 128.915);
  --chart-3: oklch(0.759 0.03 128.915);
  --chart-4: oklch(0.782 0.027 128.858);
  --chart-5: oklch(0.719 0.039 307.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.015 309.803);
  --foreground: oklch(0.992 0.002 308.443);
  --muted: oklch(0.243 0.039 130.547);
  --muted-foreground: oklch(0.764 0.038 129.026);
  --popover: oklch(0.083 0.015 309.803);
  --popover-foreground: oklch(0.992 0.002 308.443);
  --card: oklch(0.083 0.015 309.803);
  --card-foreground: oklch(0.992 0.002 308.443);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.723 0.031 307.987);
  --primary-foreground: oklch(0.176 0.009 307.874);
  --secondary: oklch(0.759 0.03 128.915);
  --secondary-foreground: oklch(0.187 0.009 129.017);
  --accent: oklch(0.759 0.03 128.915);
  --accent-foreground: oklch(0.187 0.009 129.017);
  --destructive: oklch(0.633 0.193 40.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.723 0.031 307.987);
  --chart-1: oklch(0.723 0.031 307.987);
  --chart-2: oklch(0.759 0.03 128.915);
  --chart-3: oklch(0.759 0.03 128.915);
  --chart-4: oklch(0.782 0.027 128.858);
  --chart-5: oklch(0.719 0.039 307.865);
}