Step-sister for shadcn/ui

Step-sister is a shadcn/ui theme built around a vivid indigo primary color (#7859e8) with vivid green accents (#c9e859). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid indigo primary (#7859e8) on an indigo-tinted background (#08060e).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#08060eblack
Foreground
#04020dblack
#f6f6f9whitesmoke
Card
#f6f4fbghostwhite
#0a0812black
Card foreground
#030109black
#f9f9fbghostwhite
Popover
#f6f4fbghostwhite
#0a0812black
Popover foreground
#030109black
#f9f9fbghostwhite
Primary
#7859e8mediumslateblue
#7859e8mediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c9e859darkkhaki
#c9e859darkkhaki
Secondary foreground
#0b0d02black
#0b0d02black
Muted
#edeee7linen
#161811black
Muted foreground
#54564ddarkolivegreen
#b0b2a9darkgray
Accent
#c9e859darkkhaki
#c9e859darkkhaki
Accent foreground
#0b0d02black
#0b0d02black
Destructive
#be2604firebrick
#fb5732tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7859e8mediumslateblue
#7859e8mediumslateblue

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.01:1AAA
Primary button4.77:1AA
Secondary button14.18:1AAA
Muted text6.39:1AA
Accent14.18:1AAA
Destructive6.05:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.91:1AAA
Primary button4.77:1AA
Secondary button14.18:1AAA
Muted text8.33:1AAA
Accent14.18:1AAA
Destructive6.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 296.224);
  --foreground: oklch(0.105 0.033 294.746);
  --muted: oklch(0.947 0.01 116.52);
  --muted-foreground: oklch(0.45 0.016 116.968);
  --popover: oklch(0.97 0.009 296.168);
  --popover-foreground: oklch(0.091 0.029 295.145);
  --card: oklch(0.97 0.009 296.168);
  --card-foreground: oklch(0.091 0.029 295.145);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.207 288.056);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.171 120.409);
  --secondary-foreground: oklch(0.154 0.029 117.632);
  --accent: oklch(0.882 0.171 120.409);
  --accent-foreground: oklch(0.154 0.029 117.632);
  --destructive: oklch(0.52 0.191 32.678);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.207 288.056);
  --chart-1: oklch(0.574 0.207 288.056);
  --chart-2: oklch(0.882 0.171 120.409);
  --chart-3: oklch(0.882 0.171 120.409);
  --chart-4: oklch(0.891 0.16 120.004);
  --chart-5: oklch(0.57 0.214 287.576);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.018 295.161);
  --foreground: oklch(0.974 0.004 296.25);
  --muted: oklch(0.205 0.014 117.601);
  --muted-foreground: oklch(0.76 0.014 116.663);
  --popover: oklch(0.142 0.021 294.007);
  --popover-foreground: oklch(0.983 0.003 296.277);
  --card: oklch(0.142 0.021 294.007);
  --card-foreground: oklch(0.983 0.003 296.277);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.207 288.056);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.882 0.171 120.409);
  --secondary-foreground: oklch(0.154 0.029 117.632);
  --accent: oklch(0.882 0.171 120.409);
  --accent-foreground: oklch(0.154 0.029 117.632);
  --destructive: oklch(0.673 0.206 34.052);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.574 0.207 288.056);
  --chart-1: oklch(0.574 0.207 288.056);
  --chart-2: oklch(0.882 0.171 120.409);
  --chart-3: oklch(0.882 0.171 120.409);
  --chart-4: oklch(0.891 0.16 120.004);
  --chart-5: oklch(0.57 0.214 287.576);
}