Step-grandmother for shadcn/ui

Step-grandmother is a shadcn/ui theme built around a muted light yellow primary color (#f5f5ef) with muted light yellow accents (#d2d2cb). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted light yellow primary (#f5f5ef) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefefbwhite
#040401black
Foreground
#121103black
#f8f8f7whitesmoke
Card
#fcfcf7snow
#080703black
Card foreground
#0d0d02black
#fafaf9snow
Popover
#fefefbwhite
#040401black
Popover foreground
#121103black
#f8f8f7whitesmoke
Primary
#f5f5efwhitesmoke
#f5f5efwhitesmoke
Primary foreground
#302f1ddarkslategray
#302f1ddarkslategray
Secondary
#d2d2cblightgrey
#252522darkslategray
Secondary foreground
#3a3931darkslategray
#bfbfbasilver
Muted
#efeee6linen
#191810black
Muted foreground
#626260dimgray
#9f9f9ddarkgray
Accent
#d2d2cblightgrey
#252522darkslategray
Accent foreground
#3a3931darkslategray
#bfbfbasilver
Destructive
#6f0d0cmaroon
#e82926crimson
Destructive foreground
#f7b6b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5f5efwhitesmoke
#f5f5efwhitesmoke

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.99:1AAA
Primary button12.39:1AAA
Secondary button7.63:1AAA
Muted text5.26:1AA
Accent7.63:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.34:1AAA
Text on card19.28:1AAA
Primary button12.39:1AAA
Secondary button8.32:1AAA
Muted text6.70:1AA
Accent8.32:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 103.157);
  --foreground: oklch(0.173 0.03 105.908);
  --muted: oklch(0.949 0.011 103.302);
  --muted-foreground: oklch(0.495 0.003 103.203);
  --popover: oklch(0.995 0.003 103.157);
  --popover-foreground: oklch(0.173 0.03 105.908);
  --card: oklch(0.99 0.006 103.208);
  --card-foreground: oklch(0.154 0.026 106.263);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.969 0.008 103.243);
  --primary-foreground: oklch(0.299 0.03 104.59);
  --secondary: oklch(0.862 0.01 103.297);
  --secondary-foreground: oklch(0.343 0.014 103.743);
  --accent: oklch(0.862 0.01 103.297);
  --accent-foreground: oklch(0.343 0.014 103.743);
  --destructive: oklch(0.348 0.131 27.986);
  --destructive-foreground: oklch(0.837 0.076 19.906);
  --ring: oklch(0.969 0.008 103.243);
  --chart-1: oklch(0.969 0.008 103.243);
  --chart-2: oklch(0.862 0.01 103.297);
  --chart-3: oklch(0.862 0.01 103.297);
  --chart-4: oklch(0.884 0.008 103.262);
  --chart-5: oklch(0.97 0.009 103.258);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.012 105.692);
  --foreground: oklch(0.979 0.002 103.139);
  --muted: oklch(0.208 0.016 104.27);
  --muted-foreground: oklch(0.702 0.003 103.169);
  --popover: oklch(0.102 0.012 105.692);
  --popover-foreground: oklch(0.979 0.002 103.139);
  --card: oklch(0.128 0.015 105.692);
  --card-foreground: oklch(0.986 0.001 103.128);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.969 0.008 103.243);
  --primary-foreground: oklch(0.299 0.03 104.59);
  --secondary: oklch(0.263 0.005 103.412);
  --secondary-foreground: oklch(0.804 0.007 103.249);
  --accent: oklch(0.263 0.005 103.412);
  --accent-foreground: oklch(0.804 0.007 103.249);
  --destructive: oklch(0.601 0.224 27.898);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.969 0.008 103.243);
  --chart-1: oklch(0.969 0.008 103.243);
  --chart-2: oklch(0.263 0.005 103.412);
  --chart-3: oklch(0.263 0.005 103.412);
  --chart-4: oklch(0.296 0.006 103.427);
  --chart-5: oklch(0.97 0.009 103.258);
}