Grand is a shadcn/ui theme built around a vivid indigo primary color (#1a10d5) with muted light indigo accents (#d5d5dd). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1a10d5) on an indigo-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #06050ablack |
| Foreground | #010105black | #fcfcfdwhite |
| Card | #f4f4fbwhitesmoke | #07070dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f4f4fbwhitesmoke | #07070dblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1a10d5mediumblue | #1a10d5mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7e7e9lavender | #262631darkslategray |
| Secondary foreground | #4c4c52darkslategray | #bdbdccsilver |
| Muted | #d8d7eagainsboro | #161528black |
| Muted foreground | #393847darkslategray | #b8b8c7silver |
| Accent | #d5d5ddgainsboro | #313046darkslategray |
| Accent foreground | #3a3946darkslategray | #cccbdclightgrey |
| Destructive | #b63711firebrick | #ed6840tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a10d5mediumblue | #1a10d5mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 10.07:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 10.07:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 9.11:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Grand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 288.601);
--foreground: oklch(0.066 0.025 281.483);
--muted: oklch(0.886 0.025 288.176);
--muted-foreground: oklch(0.348 0.026 287.228);
--popover: oklch(0.97 0.009 288.545);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.009 288.545);
--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.408 0.265 267.246);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.929 0.002 288.66);
--secondary-foreground: oklch(0.419 0.01 288.241);
--accent: oklch(0.875 0.01 288.486);
--accent-foreground: oklch(0.352 0.022 287.503);
--destructive: oklch(0.522 0.169 35.855);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.408 0.265 267.246);
--chart-1: oklch(0.408 0.265 267.246);
--chart-2: oklch(0.929 0.002 288.66);
--chart-3: oklch(0.875 0.01 288.486);
--chart-4: oklch(0.953 0.002 288.677);
--chart-5: oklch(0.41 0.27 266.637);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 287.089);
--foreground: oklch(0.991 0.002 288.67);
--muted: oklch(0.209 0.036 285.111);
--muted-foreground: oklch(0.787 0.021 288.194);
--popover: oklch(0.133 0.015 286.88);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.015 286.88);
--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.408 0.265 267.246);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.273 0.021 287.231);
--secondary-foreground: oklch(0.803 0.021 288.208);
--accent: oklch(0.318 0.039 286.216);
--accent-foreground: oklch(0.849 0.023 288.205);
--destructive: oklch(0.675 0.174 37.395);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.408 0.265 267.246);
--chart-1: oklch(0.408 0.265 267.246);
--chart-2: oklch(0.273 0.021 287.231);
--chart-3: oklch(0.318 0.039 286.216);
--chart-4: oklch(0.301 0.024 287.166);
--chart-5: oklch(0.41 0.27 266.637);
}