Great-grandfather is a shadcn/ui theme built around a blue primary color (#1f377a) with indigo accents (#341f7a). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#1f377a) on a neutral background (#020408).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #020408black |
| Foreground | #010204black | #ffffffwhite |
| Card | #f7f8fdghostwhite | #020408black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f7f8fdghostwhite | #020408black |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #1f377amidnightblue | #1f377amidnightblue |
| Primary foreground | #d6def5lavender | #d6def5lavender |
| Secondary | #1f657ateal | #1f657ateal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebeef0whitesmoke | #0f1314black |
| Muted foreground | #3e4c51darkslategray | #aebdc1silver |
| Accent | #341f7amidnightblue | #341f7amidnightblue |
| Accent foreground | #ddd6f5lavender | #ddd6f5lavender |
| Destructive | #832001maroon | #fd501corangered |
| Destructive foreground | #fec9b8peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f377amidnightblue | #1f377amidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 7.66:1 | AAA |
| Accent | 9.22:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 9.63:1 | AAA |
| Accent | 9.22:1 | AAA |
| Destructive | 3.31:1 | AA Large |
Paste this into your globals.css to use Great-grandfather in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 270.063);
--foreground: oklch(0.08 0.015 259.76);
--muted: oklch(0.948 0.004 217.769);
--muted-foreground: oklch(0.407 0.019 218.163);
--popover: oklch(0.98 0.007 270.063);
--popover-foreground: oklch(0.08 0.015 259.76);
--card: oklch(0.98 0.007 270.063);
--card-foreground: oklch(0.08 0.015 259.76);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.36 0.117 265.722);
--primary-foreground: oklch(0.903 0.031 269.802);
--secondary: oklch(0.472 0.075 222.237);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.331 0.144 286.284);
--accent-foreground: oklch(0.892 0.042 296.236);
--destructive: oklch(0.404 0.139 35.374);
--destructive-foreground: oklch(0.878 0.065 37.594);
--ring: oklch(0.36 0.117 265.722);
--chart-1: oklch(0.36 0.117 265.722);
--chart-2: oklch(0.472 0.075 222.237);
--chart-3: oklch(0.331 0.144 286.284);
--chart-4: oklch(0.505 0.081 222.345);
--chart-5: oklch(0.359 0.122 265.479);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.016 262.034);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.006 218.015);
--muted-foreground: oklch(0.787 0.017 217.887);
--popover: oklch(0.104 0.016 262.034);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.104 0.016 262.034);
--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.36 0.117 265.722);
--primary-foreground: oklch(0.903 0.031 269.802);
--secondary: oklch(0.472 0.075 222.237);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.331 0.144 286.284);
--accent-foreground: oklch(0.892 0.042 296.236);
--destructive: oklch(0.668 0.217 35.839);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.36 0.117 265.722);
--chart-1: oklch(0.36 0.117 265.722);
--chart-2: oklch(0.472 0.075 222.237);
--chart-3: oklch(0.331 0.144 286.284);
--chart-4: oklch(0.505 0.081 222.345);
--chart-5: oklch(0.359 0.122 265.479);
}