Grounded is a shadcn/ui theme built around a vivid light purple primary color (#f3d1fa) with vivid light green accents (#d8fad1). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light purple primary (#f3d1fa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #040104black | #f9f6f9whitesmoke |
| Card | #fcf7fdghostwhite | #030303black |
| Card foreground | #000000black | #fbf9fbsnow |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #040104black | #f9f6f9whitesmoke |
| Primary | #f3d1falavender | #f3d1falavender |
| Primary foreground | #740e8bpurple | #740e8bpurple |
| Secondary | #d8fad1beige | #d8fad1beige |
| Secondary foreground | #0c2e05black | #0c2e05black |
| Muted | #ecf5eahoneydew | #0c150ablack |
| Muted foreground | #4e574cdarkslategray | #aab3a8darkgray |
| Accent | #d8fad1beige | #d8fad1beige |
| Accent foreground | #0c2e05black | #0c2e05black |
| Destructive | #b53a0dfirebrick | #ee4c11orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3d1falavender | #f3d1falavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 13.18:1 | AAA |
| Destructive | 5.87:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 13.18:1 | AAA |
| Muted text | 8.63:1 | AAA |
| Accent | 13.18:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Grounded in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 319.995);
--foreground: oklch(0.082 0.025 322.4);
--muted: oklch(0.961 0.017 139.975);
--muted-foreground: oklch(0.446 0.022 139.948);
--popover: oklch(0.991 0.004 319.995);
--popover-foreground: oklch(0.082 0.025 322.4);
--card: oklch(0.982 0.008 319.999);
--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.901 0.067 320.056);
--primary-foreground: oklch(0.415 0.19 318.714);
--secondary: oklch(0.951 0.066 139.933);
--secondary-foreground: oklch(0.268 0.078 140.12);
--accent: oklch(0.951 0.066 139.933);
--accent-foreground: oklch(0.268 0.078 140.12);
--destructive: oklch(0.523 0.167 37.246);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.901 0.067 320.056);
--chart-1: oklch(0.901 0.067 320.056);
--chart-2: oklch(0.951 0.066 139.933);
--chart-3: oklch(0.951 0.066 139.933);
--chart-4: oklch(0.965 0.046 139.949);
--chart-5: oklch(0.9 0.069 320.058);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.006 319.997);
--muted: oklch(0.182 0.026 139.911);
--muted-foreground: oklch(0.756 0.019 139.968);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.006 319.997);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.004 319.995);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.901 0.067 320.056);
--primary-foreground: oklch(0.415 0.19 318.714);
--secondary: oklch(0.951 0.066 139.933);
--secondary-foreground: oklch(0.268 0.078 140.12);
--accent: oklch(0.951 0.066 139.933);
--accent-foreground: oklch(0.268 0.078 140.12);
--destructive: oklch(0.639 0.208 36.898);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.901 0.067 320.056);
--chart-1: oklch(0.901 0.067 320.056);
--chart-2: oklch(0.951 0.066 139.933);
--chart-3: oklch(0.951 0.066 139.933);
--chart-4: oklch(0.965 0.046 139.949);
--chart-5: oklch(0.9 0.069 320.058);
}