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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 6.35:1 | AA |
| Muted text | 5.55:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 9.59:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 4.29:1 | AA Large |
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);
}