Step-grandfather is a shadcn/ui theme built around a neutral gray primary color (#96a29e) with muted teal accents (#b0bfba). The light mode uses a neutral background (#f8fbfa). Dark mode keeps the neutral gray primary (#96a29e) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfamintcream | #020303black |
| Foreground | #030c09black | #ffffffwhite |
| Card | #f8fbfamintcream | #020303black |
| Card foreground | #030c09black | #ffffffwhite |
| Popover | #f8fbfamintcream | #020303black |
| Popover foreground | #030c09black | #ffffffwhite |
| Primary | #96a29edarkgray | #96a29edarkgray |
| Primary foreground | #020303black | #020303black |
| Secondary | #cacecdlightgrey | #182521black |
| Secondary foreground | #313534darkslategray | #a9c6bcsilver |
| Muted | #e0ebe7gainsboro | #141f1bblack |
| Muted foreground | #555857dimgray | #a7aaa9darkgray |
| Accent | #b0bfbasilver | #223f35darkslategray |
| Accent foreground | #1c2220black | #b9dacfpowderblue |
| Destructive | #5f2607maroon | #f07b3dcoral |
| Destructive foreground | #f8bfa0navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #96a29edarkgray | #96a29edarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 8.46:1 | AAA |
| Destructive | 7.34:1 | AAA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 7.78:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 7.64:1 | AAA |
Paste this into your globals.css to use Step-grandfather in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 174.481);
--foreground: oklch(0.143 0.018 174.228);
--muted: oklch(0.931 0.014 174.159);
--muted-foreground: oklch(0.458 0.005 174.281);
--popover: oklch(0.987 0.004 174.481);
--popover-foreground: oklch(0.143 0.018 174.228);
--card: oklch(0.987 0.004 174.481);
--card-foreground: oklch(0.143 0.018 174.228);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.7 0.015 173.962);
--primary-foreground: oklch(0.093 0.001 174.617);
--secondary: oklch(0.847 0.004 174.462);
--secondary-foreground: oklch(0.324 0.005 174.169);
--accent: oklch(0.791 0.017 173.945);
--accent-foreground: oklch(0.244 0.01 173.373);
--destructive: oklch(0.346 0.092 44.46);
--destructive-foreground: oklch(0.848 0.078 49.58);
--ring: oklch(0.7 0.015 173.962);
--chart-1: oklch(0.7 0.015 173.962);
--chart-2: oklch(0.847 0.004 174.462);
--chart-3: oklch(0.791 0.017 173.945);
--chart-4: oklch(0.871 0.003 174.485);
--chart-5: oklch(0.705 0.022 173.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 174.728);
--foreground: oklch(1 0 180);
--muted: oklch(0.228 0.018 171.979);
--muted-foreground: oklch(0.735 0.004 174.418);
--popover: oklch(0.096 0.007 174.728);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.007 174.728);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.7 0.015 173.962);
--primary-foreground: oklch(0.093 0.001 174.617);
--secondary: oklch(0.25 0.019 172.174);
--secondary-foreground: oklch(0.802 0.034 173.309);
--accent: oklch(0.341 0.039 170.522);
--accent-foreground: oklch(0.86 0.037 173.268);
--destructive: oklch(0.708 0.162 46.452);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.7 0.015 173.962);
--chart-1: oklch(0.7 0.015 173.962);
--chart-2: oklch(0.25 0.019 172.174);
--chart-3: oklch(0.341 0.039 170.522);
--chart-4: oklch(0.285 0.023 172.014);
--chart-5: oklch(0.705 0.022 173.651);
}