General Grandis is a shadcn/ui theme built around a vivid orange primary color (#ffcc71) with vivid light blue accents (#c9e4f8). The light mode uses a neutral background (#232323). Dark mode keeps the vivid orange primary (#ffcc71) on a neutral background (#232323).
| Token | Light | Dark |
|---|---|---|
| Background | #232323black | #232323black |
| Foreground | #d3d3d3lightgray | #d3d3d3lightgray |
| Card | #292929darkslategray | #292929darkslategray |
| Card foreground | #fdfcfcsnow | #fdfcfcsnow |
| Popover | #1b1b1ablack | #1b1b1ablack |
| Popover foreground | #fdfcfcsnow | #fdfcfcsnow |
| Primary | #ffcc71khaki | #ffcc71khaki |
| Primary foreground | #4a3322darkolivegreen | #4a3322darkolivegreen |
| Secondary | #a6a6a6darkgray | #a6a6a6darkgray |
| Secondary foreground | #23272adarkslategray | #23272adarkslategray |
| Muted | #0d0d0dblack | #0d0d0dblack |
| Muted foreground | #dcdcdcgainsboro | #dcdcdcgainsboro |
| Accent | #c9e4f8lavender | #c9e4f8lavender |
| Accent foreground | #114f7eteal | #114f7eteal |
| Destructive | #f86230tomato | #f86230tomato |
| Destructive foreground | #000000black | #000000black |
| Border | #1c1917black | #1c1917black |
| Input | #1c1917black | #1c1917black |
| Ring | #f8ddc9bisque | #f8ddc9bisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.49:1 | AAA |
| Text on card | 14.20:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 14.19:1 | AAA |
| Accent | 6.49:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 10.49:1 | AAA |
| Text on card | 14.20:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 6.16:1 | AA |
| Muted text | 14.19:1 | AAA |
| Accent | 6.49:1 | AA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use General Grandis in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.256 0 180);
--foreground: oklch(0.866 0 180);
--muted: oklch(0.158 0 169.695);
--muted-foreground: oklch(0.894 0 180);
--popover: oklch(0.221 0.002 60.165);
--popover-foreground: oklch(0.992 0.001 60.275);
--card: oklch(0.281 0 180);
--card-foreground: oklch(0.992 0.001 60.275);
--border: oklch(0.217 0.007 59.845);
--input: oklch(0.217 0.007 59.845);
--primary: oklch(0.872 0.123 80.54);
--primary-foreground: oklch(0.343 0.043 58.12);
--secondary: oklch(0.724 0 180);
--secondary-foreground: oklch(0.27 0.009 240.726);
--accent: oklch(0.904 0.039 240.905);
--accent-foreground: oklch(0.414 0.099 247.052);
--destructive: oklch(0.681 0.194 37.941);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.915 0.04 59.675);
--chart-1: oklch(0.872 0.123 80.54);
--chart-2: oklch(0.724 0 180);
--chart-3: oklch(0.904 0.039 240.905);
--chart-4: oklch(0.749 0 158.199);
--chart-5: oklch(0.875 0.126 80.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.256 0 180);
--foreground: oklch(0.866 0 180);
--muted: oklch(0.158 0 169.695);
--muted-foreground: oklch(0.894 0 180);
--popover: oklch(0.221 0.002 60.165);
--popover-foreground: oklch(0.992 0.001 60.275);
--card: oklch(0.281 0 180);
--card-foreground: oklch(0.992 0.001 60.275);
--border: oklch(0.217 0.007 59.845);
--input: oklch(0.217 0.007 59.845);
--primary: oklch(0.872 0.123 80.54);
--primary-foreground: oklch(0.343 0.043 58.12);
--secondary: oklch(0.724 0 180);
--secondary-foreground: oklch(0.27 0.009 240.726);
--accent: oklch(0.904 0.039 240.905);
--accent-foreground: oklch(0.414 0.099 247.052);
--destructive: oklch(0.681 0.194 37.941);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.915 0.04 59.675);
--chart-1: oklch(0.872 0.123 80.54);
--chart-2: oklch(0.724 0 180);
--chart-3: oklch(0.904 0.039 240.905);
--chart-4: oklch(0.749 0 158.199);
--chart-5: oklch(0.875 0.126 80.419);
}