Sprinter is a shadcn/ui theme built around a vivid deep yellow primary color (#625f09) with vivid deep indigo accents (#090c62). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the vivid deep yellow primary (#625f09) on a yellow-tinted background (#0e0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #0e0d07black |
| Foreground | #000000black | #fcfcf8snow |
| Card | #fcfcf3floralwhite | #111108black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fdfdf7snow | #0e0d07black |
| Popover foreground | #000000black | #fcfcf8snow |
| Primary | #625f09darkolivegreen | #625f09darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #090c62midnightblue | #090c62midnightblue |
| Secondary foreground | #a6a9f7lightsteelblue | #a6a9f7lightsteelblue |
| Muted | #eeeef2whitesmoke | #0d0e11black |
| Muted foreground | #44455adarkslategray | #a5a6bbdarkgray |
| Accent | #090c62midnightblue | #090c62midnightblue |
| Accent foreground | #a6a9f7lightsteelblue | #a6a9f7lightsteelblue |
| Destructive | #b63f0cfirebrick | #f05614orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #625f09darkolivegreen | #625f09darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 5.66:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 6.64:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Sprinter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 104.947);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.005 284.72);
--muted-foreground: oklch(0.397 0.036 283.087);
--popover: oklch(0.992 0.008 104.947);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.012 105.016);
--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.473 0.098 107.419);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.142 268.183);
--secondary-foreground: oklch(0.762 0.111 281.906);
--accent: oklch(0.244 0.142 268.183);
--accent-foreground: oklch(0.762 0.111 281.906);
--destructive: oklch(0.531 0.164 39.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.098 107.419);
--chart-1: oklch(0.473 0.098 107.419);
--chart-2: oklch(0.244 0.142 268.183);
--chart-3: oklch(0.244 0.142 268.183);
--chart-4: oklch(0.265 0.158 267.728);
--chart-5: oklch(0.479 0.1 107.407);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.014 106.33);
--foreground: oklch(0.989 0.005 104.888);
--muted: oklch(0.163 0.007 283.977);
--muted-foreground: oklch(0.73 0.031 284.04);
--popover: oklch(0.159 0.014 106.33);
--popover-foreground: oklch(0.989 0.005 104.888);
--card: oklch(0.174 0.016 106.333);
--card-foreground: oklch(0.994 0.002 104.848);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.473 0.098 107.419);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.244 0.142 268.183);
--secondary-foreground: oklch(0.762 0.111 281.906);
--accent: oklch(0.244 0.142 268.183);
--accent-foreground: oklch(0.762 0.111 281.906);
--destructive: oklch(0.654 0.201 39.187);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.098 107.419);
--chart-1: oklch(0.473 0.098 107.419);
--chart-2: oklch(0.244 0.142 268.183);
--chart-3: oklch(0.244 0.142 268.183);
--chart-4: oklch(0.265 0.158 267.728);
--chart-5: oklch(0.479 0.1 107.407);
}