Grand is a shadcn/ui theme built around a vivid yellow primary color (#a78d0c) with vivid blue accents (#0c25a7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#a78d0c) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #050401black | #fdfdfcwhite |
| Card | #ffffffwhite | #040401black |
| Card foreground | #050401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #050401black | #fdfdfcwhite |
| Primary | #a78d0cdarkgoldenrod | #a78d0cdarkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #0c25a7darkblue | #0c25a7darkblue |
| Secondary foreground | #e7ebfdlavender | #e7ebfdlavender |
| Muted | #e1e2e5gainsboro | #1a1b1eblack |
| Muted foreground | #3f414bdarkslategray | #b4b6c0silver |
| Accent | #0c25a7darkblue | #0c25a7darkblue |
| Accent foreground | #e7ebfdlavender | #e7ebfdlavender |
| Destructive | #c81414firebrick | #e92525crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a78d0cdarkgoldenrod | #a78d0cdarkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.60:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 9.60:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 9.60:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 9.60:1 | AAA |
| Destructive | 4.40: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.104 0.017 102.266);
--muted: oklch(0.913 0.004 277.202);
--muted-foreground: oklch(0.376 0.018 276.559);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.017 102.266);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.017 102.266);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.648 0.131 95.663);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.366 0.203 265.432);
--secondary-foreground: oklch(0.942 0.025 276.877);
--accent: oklch(0.366 0.203 265.432);
--accent-foreground: oklch(0.942 0.025 276.877);
--destructive: oklch(0.529 0.208 28.318);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.131 95.663);
--chart-1: oklch(0.648 0.131 95.663);
--chart-2: oklch(0.366 0.203 265.432);
--chart-3: oklch(0.366 0.203 265.432);
--chart-4: oklch(0.387 0.217 265.343);
--chart-5: oklch(0.655 0.133 95.422);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.013 101.255);
--foreground: oklch(0.993 0.001 97.269);
--muted: oklch(0.222 0.005 276.908);
--muted-foreground: oklch(0.778 0.015 276.992);
--popover: oklch(0.101 0.013 101.255);
--popover-foreground: oklch(0.993 0.001 97.269);
--card: oklch(0.101 0.013 101.255);
--card-foreground: oklch(0.993 0.001 97.269);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.648 0.131 95.663);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.366 0.203 265.432);
--secondary-foreground: oklch(0.942 0.025 276.877);
--accent: oklch(0.366 0.203 265.432);
--accent-foreground: oklch(0.942 0.025 276.877);
--destructive: oklch(0.601 0.228 27.61);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.648 0.131 95.663);
--chart-1: oklch(0.648 0.131 95.663);
--chart-2: oklch(0.366 0.203 265.432);
--chart-3: oklch(0.366 0.203 265.432);
--chart-4: oklch(0.387 0.217 265.343);
--chart-5: oklch(0.655 0.133 95.422);
}