Step-grandfather for shadcn/ui

Step-grandfather is a shadcn/ui theme built around an orange primary color (#ceaea1) with muted light orange accents (#ece6e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#ceaea1) on an orange-tinted background (#0f0805).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0805black
Foreground
#0d0502black
#f8f7f6whitesmoke
Card
#ffffffwhite
#0f0805black
Card foreground
#0d0502black
#f8f7f6whitesmoke
Popover
#ffffffwhite
#0f0805black
Popover foreground
#0d0502black
#f8f7f6whitesmoke
Primary
#ceaea1tan
#ceaea1tan
Primary foreground
#281a15black
#281a15black
Secondary
#ece6e4linen
#372e2adarkslategray
Secondary foreground
#5c4a42darkolivegreen
#d0c6c2silver
Muted
#ddd7d5gainsboro
#2a2422darkslategray
Muted foreground
#534d4bdarkslategray
#b4aeacdarkgray
Accent
#ece6e4linen
#372e2adarkslategray
Accent foreground
#5c4a42darkolivegreen
#d0c6c2silver
Destructive
#900b04darkred
#ef1206red
Destructive foreground
#fecbc8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ceaea1tan
#ceaea1tan

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button8.15:1AAA
Secondary button6.78:1AA
Muted text5.82:1AA
Accent6.78:1AA
Destructive6.52:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button8.15:1AAA
Secondary button7.93:1AAA
Muted text6.94:1AA
Accent7.93:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.019 52.828);
  --muted: oklch(0.883 0.007 43.054);
  --muted-foreground: oklch(0.426 0.008 42.961);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.019 52.828);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.019 52.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.775 0.041 42.744);
  --primary-foreground: oklch(0.235 0.024 42.504);
  --secondary: oklch(0.93 0.006 43.067);
  --secondary-foreground: oklch(0.424 0.027 42.682);
  --accent: oklch(0.93 0.006 43.067);
  --accent-foreground: oklch(0.424 0.027 42.682);
  --destructive: oklch(0.415 0.164 29.684);
  --destructive-foreground: oklch(0.885 0.058 21.815);
  --ring: oklch(0.775 0.041 42.744);
  --chart-1: oklch(0.775 0.041 42.744);
  --chart-2: oklch(0.93 0.006 43.067);
  --chart-3: oklch(0.93 0.006 43.067);
  --chart-4: oklch(0.953 0.004 43.089);
  --chart-5: oklch(0.775 0.045 42.715);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.016 47.808);
  --foreground: oklch(0.977 0.002 43.116);
  --muted: oklch(0.268 0.01 42.834);
  --muted-foreground: oklch(0.756 0.007 43.044);
  --popover: oklch(0.144 0.016 47.808);
  --popover-foreground: oklch(0.977 0.002 43.116);
  --card: oklch(0.144 0.016 47.808);
  --card-foreground: oklch(0.977 0.002 43.116);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.775 0.041 42.744);
  --primary-foreground: oklch(0.235 0.024 42.504);
  --secondary: oklch(0.309 0.015 42.775);
  --secondary-foreground: oklch(0.835 0.012 42.999);
  --accent: oklch(0.309 0.015 42.775);
  --accent-foreground: oklch(0.835 0.012 42.999);
  --destructive: oklch(0.601 0.241 29.536);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.775 0.041 42.744);
  --chart-1: oklch(0.775 0.041 42.744);
  --chart-2: oklch(0.309 0.015 42.775);
  --chart-3: oklch(0.309 0.015 42.775);
  --chart-4: oklch(0.339 0.017 42.766);
  --chart-5: oklch(0.775 0.045 42.715);
}