Step-grandfather for shadcn/ui

Step-grandfather is a shadcn/ui theme built around a blue primary color (#769fc6) with orange accents (#c69d76). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#769fc6) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#010304black
Foreground
#000000black
#f6f7f9whitesmoke
Card
#f5f7fawhitesmoke
#020508black
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f5f7fawhitesmoke
#020508black
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#769fc6cornflowerblue
#769fc6cornflowerblue
Primary foreground
#030507black
#030507black
Secondary
#c69d76darkkhaki
#c69d76darkkhaki
Secondary foreground
#070503black
#070503black
Muted
#ede5deantiquewhite
#211912black
Muted foreground
#585451dimgray
#aeaba7darkgray
Accent
#c69d76darkkhaki
#c69d76darkkhaki
Accent foreground
#070503black
#070503black
Destructive
#631b03maroon
#fa6938tomato
Destructive foreground
#fcb49cburlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#769fc6cornflowerblue
#769fc6cornflowerblue

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.60:1AAA
Primary button7.36:1AAA
Secondary button8.20:1AAA
Muted text6.02:1AA
Accent8.20:1AAA
Destructive7.18:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.52:1AAA
Primary button7.36:1AAA
Secondary button8.20:1AAA
Muted text7.56:1AAA
Accent8.20:1AAA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 246.004);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.013 65.802);
  --muted-foreground: oklch(0.448 0.007 65.78);
  --popover: oklch(0.976 0.005 246.023);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.976 0.005 246.023);
  --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.688 0.072 247.238);
  --primary-foreground: oklch(0.113 0.009 240.233);
  --secondary: oklch(0.724 0.072 64.401);
  --secondary-foreground: oklch(0.118 0.009 71.834);
  --accent: oklch(0.724 0.072 64.401);
  --accent-foreground: oklch(0.118 0.009 71.834);
  --destructive: oklch(0.338 0.109 37.178);
  --destructive-foreground: oklch(0.832 0.092 39.21);
  --ring: oklch(0.688 0.072 247.238);
  --chart-1: oklch(0.688 0.072 247.238);
  --chart-2: oklch(0.724 0.072 64.401);
  --chart-3: oklch(0.724 0.072 64.401);
  --chart-4: oklch(0.746 0.066 64.639);
  --chart-5: oklch(0.688 0.078 247.348);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.009 238.565);
  --foreground: oklch(0.976 0.003 246);
  --muted: oklch(0.221 0.018 64.774);
  --muted-foreground: oklch(0.742 0.006 65.869);
  --popover: oklch(0.113 0.012 238.565);
  --popover-foreground: oklch(0.984 0.002 245.989);
  --card: oklch(0.113 0.012 238.565);
  --card-foreground: oklch(0.984 0.002 245.989);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.688 0.072 247.238);
  --primary-foreground: oklch(0.113 0.009 240.233);
  --secondary: oklch(0.724 0.072 64.401);
  --secondary-foreground: oklch(0.118 0.009 71.834);
  --accent: oklch(0.724 0.072 64.401);
  --accent-foreground: oklch(0.118 0.009 71.834);
  --destructive: oklch(0.694 0.189 38.225);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.688 0.072 247.238);
  --chart-1: oklch(0.688 0.072 247.238);
  --chart-2: oklch(0.724 0.072 64.401);
  --chart-3: oklch(0.724 0.072 64.401);
  --chart-4: oklch(0.746 0.066 64.639);
  --chart-5: oklch(0.688 0.078 247.348);
}