Game is a shadcn/ui theme built around a neutral gray primary color (#b8b8b8) with neutral gray accents (#b8b8b8). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the neutral gray primary (#b8b8b8) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #080202black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fbf8f8snow | #0c0303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf8f8snow | #0c0303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b8b8b8silver | #b8b8b8silver |
| Primary foreground | #1f1f1fblack | #1f1f1fblack |
| Secondary | #b8b8b8silver | #b8b8b8silver |
| Secondary foreground | #1f1f1fblack | #1f1f1fblack |
| Muted | #e3dedegainsboro | #211c1cblack |
| Muted foreground | #5c4d4ddimgray | #b2a3a3darkgray |
| Accent | #b8b8b8silver | #b8b8b8silver |
| Accent foreground | #1f1f1fblack | #1f1f1fblack |
| Destructive | #6e0802maroon | #f51105red |
| Destructive foreground | #fda9a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b8b8silver | #b8b8b8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Game in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.185);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.005 17.243);
--muted-foreground: oklch(0.434 0.02 17.966);
--popover: oklch(0.983 0.003 17.213);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.003 17.213);
--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.781 0 180);
--primary-foreground: oklch(0.238 0 161.565);
--secondary: oklch(0.781 0 180);
--secondary-foreground: oklch(0.238 0 161.565);
--accent: oklch(0.781 0 180);
--accent-foreground: oklch(0.238 0 161.565);
--destructive: oklch(0.343 0.134 29.947);
--destructive-foreground: oklch(0.817 0.1 22.791);
--ring: oklch(0.781 0 180);
--chart-1: oklch(0.781 0 180);
--chart-2: oklch(0.781 0 180);
--chart-3: oklch(0.781 0 180);
--chart-4: oklch(0.805 0 169.695);
--chart-5: oklch(0.778 0.005 17.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.998);
--foreground: oklch(0.992 0.001 17.174);
--muted: oklch(0.233 0.007 17.64);
--muted-foreground: oklch(0.729 0.018 17.565);
--popover: oklch(0.118 0.022 21.037);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.022 21.037);
--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.781 0 180);
--primary-foreground: oklch(0.238 0 161.565);
--secondary: oklch(0.781 0 180);
--secondary-foreground: oklch(0.238 0 161.565);
--accent: oklch(0.781 0 180);
--accent-foreground: oklch(0.238 0 161.565);
--destructive: oklch(0.613 0.246 29.549);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0 180);
--chart-1: oklch(0.781 0 180);
--chart-2: oklch(0.781 0 180);
--chart-3: oklch(0.781 0 180);
--chart-4: oklch(0.805 0 169.695);
--chart-5: oklch(0.778 0.005 17.261);
}