Chess is a shadcn/ui theme built around a deep orange primary color (#5f4826) with deep blue accents (#263d5f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep orange primary (#5f4826) on an orange-tinted background (#0b0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0b0804black |
| Foreground | #0d0902black | #f9f8f6whitesmoke |
| Card | #fefdfbsnow | #0b0804black |
| Card foreground | #0d0902black | #f9f8f6whitesmoke |
| Popover | #fefdfbsnow | #0b0804black |
| Popover foreground | #0d0902black | #f9f8f6whitesmoke |
| Primary | #5f4826darkolivegreen | #5f4826darkolivegreen |
| Primary foreground | #ebdeccgainsboro | #ebdeccgainsboro |
| Secondary | #263d5fdarkslategray | #263d5fdarkslategray |
| Secondary foreground | #ccd8ebgainsboro | #ccd8ebgainsboro |
| Muted | #e0e4eblavender | #14181fblack |
| Muted foreground | #3f4246darkslategray | #b9bcc0silver |
| Accent | #263d5fdarkslategray | #263d5fdarkslategray |
| Accent foreground | #ccd8ebgainsboro | #ccd8ebgainsboro |
| Destructive | #ca1916firebrick | #e82f2ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f4826darkolivegreen | #5f4826darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 9.31:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Chess in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 78.305);
--foreground: oklch(0.142 0.022 86.098);
--muted: oklch(0.919 0.01 258.339);
--muted-foreground: oklch(0.377 0.008 258.355);
--popover: oklch(0.994 0.002 78.305);
--popover-foreground: oklch(0.142 0.022 86.098);
--card: oklch(0.994 0.002 78.305);
--card-foreground: oklch(0.142 0.022 86.098);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.059 76.127);
--primary-foreground: oklch(0.907 0.028 78.178);
--secondary: oklch(0.357 0.066 258.277);
--secondary-foreground: oklch(0.879 0.029 258.367);
--accent: oklch(0.357 0.066 258.277);
--accent-foreground: oklch(0.879 0.029 258.367);
--destructive: oklch(0.536 0.207 28.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.059 76.127);
--chart-1: oklch(0.418 0.059 76.127);
--chart-2: oklch(0.357 0.066 258.277);
--chart-3: oklch(0.357 0.066 258.277);
--chart-4: oklch(0.384 0.073 258.278);
--chart-5: oklch(0.421 0.062 75.814);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 84.019);
--foreground: oklch(0.978 0.002 78.306);
--muted: oklch(0.209 0.015 258.363);
--muted-foreground: oklch(0.794 0.006 258.332);
--popover: oklch(0.139 0.014 84.019);
--popover-foreground: oklch(0.978 0.002 78.306);
--card: oklch(0.139 0.014 84.019);
--card-foreground: oklch(0.978 0.002 78.306);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.418 0.059 76.127);
--primary-foreground: oklch(0.907 0.028 78.178);
--secondary: oklch(0.357 0.066 258.277);
--secondary-foreground: oklch(0.879 0.029 258.367);
--accent: oklch(0.357 0.066 258.277);
--accent-foreground: oklch(0.879 0.029 258.367);
--destructive: oklch(0.604 0.219 27.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.059 76.127);
--chart-1: oklch(0.418 0.059 76.127);
--chart-2: oklch(0.357 0.066 258.277);
--chart-3: oklch(0.357 0.066 258.277);
--chart-4: oklch(0.384 0.073 258.278);
--chart-5: oklch(0.421 0.062 75.814);
}