Step-grandfather is a shadcn/ui theme built around a muted yellow primary color (#999385) with muted green accents (#959985). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#999385) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070603black |
| Foreground | #151004black | #faf8f5whitesmoke |
| Card | #fdfbf7snow | #0a0905black |
| Card foreground | #110d03black | #fcfbf8snow |
| Popover | #fefdfbsnow | #070603black |
| Popover foreground | #151004black | #faf8f5whitesmoke |
| Primary | #999385gray | #999385gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #998985gray | #998985gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f6ecealinen | #150c09black |
| Muted foreground | #484341darkslategray | #beb8b7silver |
| Accent | #959985gray | #959985gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #6f2406maroon | #f36b35tomato |
| Destructive foreground | #fac3adlightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #999385gray | #999385gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 9.86:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 6.95:1 | AA |
Paste this into your globals.css to use Step-grandfather in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 87.436);
--foreground: oklch(0.176 0.025 88.764);
--muted: oklch(0.95 0.011 34.301);
--muted-foreground: oklch(0.387 0.008 34.297);
--popover: oklch(0.994 0.003 87.436);
--popover-foreground: oklch(0.176 0.025 88.764);
--card: oklch(0.989 0.006 87.452);
--card-foreground: oklch(0.16 0.022 90.384);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.664 0.022 87.549);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.642 0.021 34.303);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.029 116.376);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.372 0.113 38.965);
--destructive-foreground: oklch(0.861 0.07 42.598);
--ring: oklch(0.664 0.022 87.549);
--chart-1: oklch(0.664 0.022 87.549);
--chart-2: oklch(0.642 0.021 34.303);
--chart-3: oklch(0.674 0.029 116.376);
--chart-4: oklch(0.668 0.019 34.3);
--chart-5: oklch(0.669 0.029 87.566);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 91.063);
--foreground: oklch(0.98 0.005 87.447);
--muted: oklch(0.166 0.017 34.578);
--muted-foreground: oklch(0.787 0.007 34.304);
--popover: oklch(0.121 0.009 91.063);
--popover-foreground: oklch(0.98 0.005 87.447);
--card: oklch(0.139 0.01 91.061);
--card-foreground: oklch(0.987 0.003 87.438);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.664 0.022 87.549);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.642 0.021 34.303);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.029 116.376);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.686 0.181 40.499);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.664 0.022 87.549);
--chart-1: oklch(0.664 0.022 87.549);
--chart-2: oklch(0.642 0.021 34.303);
--chart-3: oklch(0.674 0.029 116.376);
--chart-4: oklch(0.668 0.019 34.3);
--chart-5: oklch(0.669 0.029 87.566);
}