Grand is a shadcn/ui theme built around a green primary color (#a9c421) with green accents (#58c421). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a9c421) on a green-tinted background (#0d0e06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0e06black |
| Foreground | #070902black | #ffffffwhite |
| Card | #fcfcfcsnow | #101108black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #101108black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #a9c421yellowgreen | #a9c421yellowgreen |
| Primary foreground | #131604black | #131604black |
| Secondary | #c48e21darkgoldenrod | #c48e21darkgoldenrod |
| Secondary foreground | #161004black | #161004black |
| Muted | #e1dbd1gainsboro | #2e291edarkslategray |
| Muted foreground | #615848darkolivegreen | #b7af9edarkgray |
| Accent | #58c421limegreen | #58c421limegreen |
| Accent foreground | #0a1604black | #0a1604black |
| Destructive | #d21414firebrick | #ec3636crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a9c421yellowgreen | #a9c421yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 5.10:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 5.45:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Grand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.022 115.017);
--muted: oklch(0.894 0.016 84.587);
--muted-foreground: oklch(0.465 0.028 84.52);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.105 0.018 115.017);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.105 0.018 115.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.774 0.175 119.513);
--primary-foreground: oklch(0.19 0.035 117.059);
--secondary: oklch(0.682 0.132 79.091);
--secondary-foreground: oklch(0.176 0.026 85.995);
--accent: oklch(0.728 0.214 138.099);
--accent-foreground: oklch(0.182 0.041 134.874);
--destructive: oklch(0.548 0.217 28.423);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.774 0.175 119.513);
--chart-1: oklch(0.774 0.175 119.513);
--chart-2: oklch(0.682 0.132 79.091);
--chart-3: oklch(0.728 0.214 138.099);
--chart-4: oklch(0.716 0.139 79.007);
--chart-5: oklch(0.783 0.179 119.683);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.016 115.518);
--foreground: oklch(1 0 180);
--muted: oklch(0.283 0.02 84.458);
--muted-foreground: oklch(0.757 0.025 84.591);
--popover: oklch(0.175 0.019 115.979);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.175 0.019 115.979);
--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.774 0.175 119.513);
--primary-foreground: oklch(0.19 0.035 117.059);
--secondary: oklch(0.682 0.132 79.091);
--secondary-foreground: oklch(0.176 0.026 85.995);
--accent: oklch(0.728 0.214 138.099);
--accent-foreground: oklch(0.182 0.041 134.874);
--destructive: oklch(0.619 0.218 26.369);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.774 0.175 119.513);
--chart-1: oklch(0.774 0.175 119.513);
--chart-2: oklch(0.682 0.132 79.091);
--chart-3: oklch(0.728 0.214 138.099);
--chart-4: oklch(0.716 0.139 79.007);
--chart-5: oklch(0.783 0.179 119.683);
}