Step-grandfather for shadcn/ui

Step-grandfather is a shadcn/ui theme built around a near-white primary color (#f6fdfa) with near-white accents (#eaeceb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-white primary (#f6fdfa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#000000black
#f6f9f8whitesmoke
Card
#f7fdfamintcream
#030303black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f7fdfamintcream
#030303black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#f6fdfamintcream
#f6fdfamintcream
Primary foreground
#0f4d31darkslategray
#0f4d31darkslategray
Secondary
#eaeceblavender
#222524darkslategray
Secondary foreground
#4e5652darkslategray
#babfbdsilver
Muted
#dcefe6gainsboro
#10231ablack
Muted foreground
#545f5adimgray
#a0aba6darkgray
Accent
#eaeceblavender
#222524darkslategray
Accent foreground
#4e5652darkslategray
#babfbdsilver
Destructive
#cd3213firebrick
#e53815orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6fdfamintcream
#f6fdfamintcream

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.38:1AAA
Primary button9.59:1AAA
Secondary button6.35:1AA
Muted text5.55:1AA
Accent6.35:1AA
Destructive5.15:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.89:1AAA
Primary button9.59:1AAA
Secondary button8.28:1AAA
Muted text6.91:1AA
Accent8.28:1AAA
Destructive4.29: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(0.994 0.004 167.708);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.024 167.083);
  --muted-foreground: oklch(0.473 0.015 166.886);
  --popover: oklch(0.989 0.008 167.602);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.008 167.602);
  --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.989 0.008 167.581);
  --primary-foreground: oklch(0.373 0.078 158.854);
  --secondary: oklch(0.94 0.002 167.739);
  --secondary-foreground: oklch(0.444 0.012 167.05);
  --accent: oklch(0.94 0.002 167.739);
  --accent-foreground: oklch(0.444 0.012 167.05);
  --destructive: oklch(0.558 0.196 32.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.008 167.581);
  --chart-1: oklch(0.989 0.008 167.581);
  --chart-2: oklch(0.94 0.002 167.739);
  --chart-3: oklch(0.94 0.002 167.739);
  --chart-4: oklch(0.963 0.002 167.768);
  --chart-5: oklch(0.989 0.009 167.571);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.004 167.692);
  --muted: oklch(0.238 0.031 163.329);
  --muted-foreground: oklch(0.732 0.014 167.28);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.003 167.733);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.003 167.733);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.008 167.581);
  --primary-foreground: oklch(0.373 0.078 158.854);
  --secondary: oklch(0.262 0.005 167.299);
  --secondary-foreground: oklch(0.801 0.007 167.578);
  --accent: oklch(0.262 0.005 167.299);
  --accent-foreground: oklch(0.801 0.007 167.578);
  --destructive: oklch(0.604 0.213 32.695);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.008 167.581);
  --chart-1: oklch(0.989 0.008 167.581);
  --chart-2: oklch(0.262 0.005 167.299);
  --chart-3: oklch(0.262 0.005 167.299);
  --chart-4: oklch(0.293 0.006 167.272);
  --chart-5: oklch(0.989 0.009 167.571);
}