Grand is a shadcn/ui theme built around a vivid green primary color (#8af005) with vivid violet accents (#6b05f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#8af005) on a neutral background (#030402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030402black |
| Foreground | #000000black | #fafcf8snow |
| Card | #ffffffwhite | #030402black |
| Card foreground | #000000black | #fafcf8snow |
| Popover | #ffffffwhite | #030402black |
| Popover foreground | #000000black | #fafcf8snow |
| Primary | #8af005lawngreen | #8af005lawngreen |
| Primary foreground | #172801black | #172801black |
| Secondary | #6b05f0darkviolet | #6b05f0darkviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e2eelavender | #16111dblack |
| Muted foreground | #423e47darkslategray | #bcb8c1silver |
| Accent | #6b05f0darkviolet | #6b05f0darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #941805darkred | #f63113orangered |
| Destructive foreground | #fdd4cebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8af005lawngreen | #8af005lawngreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.84:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 10.84:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 9.50:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 3.89: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 0 0);
--muted: oklch(0.921 0.017 305.495);
--muted-foreground: oklch(0.37 0.017 305.146);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.858 0.243 133.497);
--primary-foreground: oklch(0.252 0.067 130.064);
--secondary: oklch(0.494 0.279 289.2);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.494 0.279 289.2);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.43 0.16 31.475);
--destructive-foreground: oklch(0.903 0.047 28.289);
--ring: oklch(0.858 0.243 133.497);
--chart-1: oklch(0.858 0.243 133.497);
--chart-2: oklch(0.494 0.279 289.2);
--chart-3: oklch(0.494 0.279 289.2);
--chart-4: oklch(0.513 0.286 289.962);
--chart-5: oklch(0.867 0.248 133.71);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 125.102);
--foreground: oklch(0.988 0.005 125.812);
--muted: oklch(0.19 0.025 303.965);
--muted-foreground: oklch(0.789 0.014 305.509);
--popover: oklch(0.099 0.011 125.102);
--popover-foreground: oklch(0.988 0.005 125.812);
--card: oklch(0.099 0.011 125.102);
--card-foreground: oklch(0.988 0.005 125.812);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.858 0.243 133.497);
--primary-foreground: oklch(0.252 0.067 130.064);
--secondary: oklch(0.494 0.279 289.2);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.494 0.279 289.2);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.234 31.404);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.243 133.497);
--chart-1: oklch(0.858 0.243 133.497);
--chart-2: oklch(0.494 0.279 289.2);
--chart-3: oklch(0.494 0.279 289.2);
--chart-4: oklch(0.513 0.286 289.962);
--chart-5: oklch(0.867 0.248 133.71);
}