Race is a shadcn/ui theme built around a muted light blue primary color (#c8d6df) with muted light blue accents (#bcc3c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#c8d6df) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020608black |
| Foreground | #010304black | #ffffffwhite |
| Card | #ffffffwhite | #020608black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #ffffffwhite | #020608black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #c8d6dflightgrey | #c8d6dflightgrey |
| Primary foreground | #2b3d4adarkslategray | #2b3d4adarkslategray |
| Secondary | #d0d1d2lightgrey | #2b2b2cdarkslategray |
| Secondary foreground | #36383adarkslategray | #c4c4c5silver |
| Muted | #ecedeewhitesmoke | #111213black |
| Muted foreground | #40464adarkslategray | #b5bbbfsilver |
| Accent | #bcc3c8silver | #383e43darkslategray |
| Accent foreground | #25292ddarkslategray | #d3d7dalightgrey |
| Destructive | #842c06saddlebrown | #f56629tomato |
| Destructive foreground | #fcd2c0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8d6dflightgrey | #c8d6dflightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 9.66:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Race in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.091 0.012 229.153);
--muted: oklch(0.946 0.002 238.385);
--muted-foreground: oklch(0.389 0.01 238.737);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.091 0.012 229.153);
--card: oklch(1 0 180);
--card-foreground: oklch(0.091 0.012 229.153);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.867 0.02 238.695);
--primary-foreground: oklch(0.351 0.033 239.962);
--secondary: oklch(0.861 0.002 238.401);
--secondary-foreground: oklch(0.341 0.004 238.515);
--accent: oklch(0.813 0.011 238.55);
--accent-foreground: oklch(0.28 0.009 238.846);
--destructive: oklch(0.419 0.128 39.402);
--destructive-foreground: oklch(0.895 0.054 44.475);
--ring: oklch(0.867 0.02 238.695);
--chart-1: oklch(0.867 0.02 238.695);
--chart-2: oklch(0.861 0.002 238.401);
--chart-3: oklch(0.813 0.011 238.55);
--chart-4: oklch(0.884 0.002 238.394);
--chart-5: oklch(0.867 0.022 238.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 231.651);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.002 238.54);
--muted-foreground: oklch(0.789 0.008 238.515);
--popover: oklch(0.115 0.011 231.651);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.011 231.651);
--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.867 0.02 238.695);
--primary-foreground: oklch(0.351 0.033 239.962);
--secondary: oklch(0.29 0.001 238.41);
--secondary-foreground: oklch(0.821 0.001 238.38);
--accent: oklch(0.36 0.012 238.838);
--accent-foreground: oklch(0.876 0.006 238.464);
--destructive: oklch(0.682 0.189 40.937);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.867 0.02 238.695);
--chart-1: oklch(0.867 0.02 238.695);
--chart-2: oklch(0.29 0.001 238.41);
--chart-3: oklch(0.36 0.012 238.838);
--chart-4: oklch(0.321 0.001 238.412);
--chart-5: oklch(0.867 0.022 238.734);
}