Court is a shadcn/ui theme built around a light blue primary color (#a6bde8) with neutral gray accents (#d1d3d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#a6bde8) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #050a15black | #f6f7f9whitesmoke |
| Card | #ffffffwhite | #030407black |
| Card foreground | #050a15black | #f6f7f9whitesmoke |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #050a15black | #f6f7f9whitesmoke |
| Primary | #a6bde8lightsteelblue | #a6bde8lightsteelblue |
| Primary foreground | #132649midnightblue | #132649midnightblue |
| Secondary | #d1d3d6lightgrey | #151619black |
| Secondary foreground | #383a3edarkslategray | #aaaeb6darkgray |
| Muted | #e7e9eelavender | #111318black |
| Muted foreground | #4e5665dimgray | #9aa2b1darkgray |
| Accent | #d1d3d6lightgrey | #151619black |
| Accent foreground | #383a3edarkslategray | #aaaeb6darkgray |
| Destructive | #d92a02orangered | #fd4117orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a6bde8lightsteelblue | #a6bde8lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Court in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.025 258.874);
--muted: oklch(0.935 0.007 263.04);
--muted-foreground: oklch(0.451 0.027 262.844);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.025 258.874);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.025 258.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.066 262.71);
--primary-foreground: oklch(0.273 0.07 261.612);
--secondary: oklch(0.866 0.004 263.045);
--secondary-foreground: oklch(0.347 0.007 263.006);
--accent: oklch(0.866 0.004 263.045);
--accent-foreground: oklch(0.347 0.007 263.006);
--destructive: oklch(0.572 0.213 32.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.796 0.066 262.71);
--chart-1: oklch(0.796 0.066 262.71);
--chart-2: oklch(0.866 0.004 263.045);
--chart-3: oklch(0.866 0.004 263.045);
--chart-4: oklch(0.89 0.003 263.047);
--chart-5: oklch(0.794 0.07 262.683);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.01 257.413);
--foreground: oklch(0.975 0.003 263.048);
--muted: oklch(0.188 0.011 262.86);
--muted-foreground: oklch(0.711 0.024 262.962);
--popover: oklch(0.11 0.01 257.413);
--popover-foreground: oklch(0.975 0.003 263.048);
--card: oklch(0.11 0.01 257.413);
--card-foreground: oklch(0.975 0.003 263.048);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.066 262.71);
--primary-foreground: oklch(0.273 0.07 261.612);
--secondary: oklch(0.202 0.005 262.99);
--secondary-foreground: oklch(0.75 0.013 263.017);
--accent: oklch(0.202 0.005 262.99);
--accent-foreground: oklch(0.75 0.013 263.017);
--destructive: oklch(0.653 0.229 33.269);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.796 0.066 262.71);
--chart-1: oklch(0.796 0.066 262.71);
--chart-2: oklch(0.202 0.005 262.99);
--chart-3: oklch(0.202 0.005 262.99);
--chart-4: oklch(0.234 0.007 262.981);
--chart-5: oklch(0.794 0.07 262.683);
}