Grand is a shadcn/ui theme built around a deep red primary color (#150508) with muted light red accents (#e4ddde). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep red primary (#150508) on a red-tinted background (#0f0607).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0f0607black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcf8f8snow | #120709black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8f8snow | #120709black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #150508black | #150508black |
| Primary foreground | #de6e82palevioletred | #de6e82palevioletred |
| Secondary | #e4dddegainsboro | #2a2224darkslategray |
| Secondary foreground | #4f4042darkslategray | #c6b9bbsilver |
| Muted | #f6eef0whitesmoke | #11090ablack |
| Muted foreground | #6e595ddimgray | #a69195rosybrown |
| Accent | #e4dddegainsboro | #2a2224darkslategray |
| Accent foreground | #4f4042darkslategray | #c6b9bbsilver |
| Destructive | #932206darkred | #f65931tomato |
| Destructive foreground | #fdd7cebisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #150508black | #150508black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.31:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.40:1 | AA |
Paste this into your globals.css to use Grand in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 4.377);
--foreground: oklch(0.08 0.02 4.923);
--muted: oklch(0.957 0.008 4.545);
--muted-foreground: oklch(0.486 0.029 5.881);
--popover: oklch(0.982 0.005 4.444);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 4.444);
--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.144 0.032 7.601);
--primary-foreground: oklch(0.674 0.141 10.104);
--secondary: oklch(0.903 0.008 4.532);
--secondary-foreground: oklch(0.387 0.022 5.805);
--accent: oklch(0.903 0.008 4.532);
--accent-foreground: oklch(0.387 0.022 5.805);
--destructive: oklch(0.437 0.152 33.859);
--destructive-foreground: oklch(0.91 0.044 34.331);
--ring: oklch(0.144 0.032 7.601);
--chart-1: oklch(0.144 0.032 7.601);
--chart-2: oklch(0.903 0.008 4.532);
--chart-3: oklch(0.903 0.008 4.532);
--chart-4: oklch(0.928 0.006 4.472);
--chart-5: oklch(0.144 0.034 7.731);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.018 5.559);
--foreground: oklch(0.992 0.001 4.327);
--muted: oklch(0.151 0.014 6.472);
--muted-foreground: oklch(0.676 0.027 5.345);
--popover: oklch(0.148 0.021 6.883);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.021 6.883);
--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.144 0.032 7.601);
--primary-foreground: oklch(0.674 0.141 10.104);
--secondary: oklch(0.263 0.012 5.489);
--secondary-foreground: oklch(0.797 0.015 4.801);
--accent: oklch(0.263 0.012 5.489);
--accent-foreground: oklch(0.797 0.015 4.801);
--destructive: oklch(0.669 0.2 34.966);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.144 0.032 7.601);
--chart-1: oklch(0.144 0.032 7.601);
--chart-2: oklch(0.263 0.012 5.489);
--chart-3: oklch(0.263 0.012 5.489);
--chart-4: oklch(0.293 0.014 5.546);
--chart-5: oklch(0.144 0.034 7.731);
}