Grounded is a shadcn/ui theme built around a vivid deep yellow primary color (#363402) with muted yellow accents (#d2d1ad). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid deep yellow primary (#363402) on a yellow-tinted background (#0c0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0c0c03black |
| Foreground | #141405black | #ffffffwhite |
| Card | #fbfbf3floralwhite | #100f05black |
| Card foreground | #101004black | #ffffffwhite |
| Popover | #fdfcf7snow | #0c0c03black |
| Popover foreground | #141405black | #ffffffwhite |
| Primary | #363402darkgreen | #363402darkgreen |
| Primary foreground | #f5ed0fyellow | #f5ed0fyellow |
| Secondary | #d8d8c5lightgrey | #31302bdarkslategray |
| Secondary foreground | #40402bdarkslategray | #cacac4silver |
| Muted | #f5f5ealinen | #15140ablack |
| Muted foreground | #525147darkolivegreen | #b8b7addarkgray |
| Accent | #d2d1adsilver | #484737darkslategray |
| Accent foreground | #31311bdarkslategray | #deddd4gainsboro |
| Destructive | #d14010chocolate | #f06638tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #363402darkgreen | #363402darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.10:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 10.30:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 8.45:1 | AAA |
| Destructive | 4.72:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 10.30:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 9.15:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Grounded in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 104.931);
--foreground: oklch(0.187 0.028 107.158);
--muted: oklch(0.967 0.014 105.053);
--muted-foreground: oklch(0.434 0.017 105.455);
--popover: oklch(0.991 0.007 104.931);
--popover-foreground: oklch(0.187 0.028 107.158);
--card: oklch(0.987 0.011 104.993);
--card-foreground: oklch(0.169 0.025 107.203);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.317 0.066 107.55);
--primary-foreground: oklch(0.923 0.197 107.292);
--secondary: oklch(0.876 0.025 105.3);
--secondary-foreground: oklch(0.364 0.033 106.282);
--accent: oklch(0.851 0.048 105.745);
--accent-foreground: oklch(0.306 0.035 106.613);
--destructive: oklch(0.577 0.189 36.278);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.317 0.066 107.55);
--chart-1: oklch(0.317 0.066 107.55);
--chart-2: oklch(0.876 0.025 105.3);
--chart-3: oklch(0.851 0.048 105.745);
--chart-4: oklch(0.896 0.021 105.214);
--chart-5: oklch(0.32 0.068 107.565);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.02 107.182);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.019 106.439);
--muted-foreground: oklch(0.778 0.014 105.128);
--popover: oklch(0.149 0.02 107.182);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.167 0.023 107.052);
--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.317 0.066 107.55);
--primary-foreground: oklch(0.923 0.197 107.292);
--secondary: oklch(0.309 0.009 105.321);
--secondary-foreground: oklch(0.837 0.009 104.993);
--accent: oklch(0.395 0.026 105.887);
--accent-foreground: oklch(0.896 0.013 105.058);
--destructive: oklch(0.676 0.181 38.309);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.317 0.066 107.55);
--chart-1: oklch(0.317 0.066 107.55);
--chart-2: oklch(0.309 0.009 105.321);
--chart-3: oklch(0.395 0.026 105.887);
--chart-4: oklch(0.341 0.011 105.338);
--chart-5: oklch(0.32 0.068 107.565);
}