Spotted is a shadcn/ui theme built around a vivid deep orange primary color (#322001) with vivid deep blue accents (#011332). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the vivid deep orange primary (#322001) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #070603black |
| Foreground | #170f03black | #fdfdfcwhite |
| Card | #fcfaf8snow | #070603black |
| Card foreground | #170f03black | #fdfdfcwhite |
| Popover | #fcfaf8snow | #070603black |
| Popover foreground | #170f03black | #fdfdfcwhite |
| Primary | #322001black | #322001black |
| Primary foreground | #fca103orange | #fca103orange |
| Secondary | #011332black | #011332black |
| Secondary foreground | #689ffdcornflowerblue | #689ffdcornflowerblue |
| Muted | #dde0e4gainsboro | #1b1e22black |
| Muted foreground | #5b616bdimgray | #9499a4darkgray |
| Accent | #011332black | #011332black |
| Accent foreground | #689ffdcornflowerblue | #689ffdcornflowerblue |
| Destructive | #a33a05saddlebrown | #df4f07orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #322001black | #322001black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.28:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 4.69:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 6.63:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 5.86:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Spotted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 81.513);
--foreground: oklch(0.176 0.029 83.291);
--muted: oklch(0.905 0.006 261.512);
--muted-foreground: oklch(0.492 0.018 261.464);
--popover: oklch(0.987 0.004 81.513);
--popover-foreground: oklch(0.176 0.029 83.291);
--card: oklch(0.987 0.004 81.513);
--card-foreground: oklch(0.176 0.029 83.291);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.261 0.054 77.311);
--primary-foreground: oklch(0.782 0.17 69.285);
--secondary: oklch(0.193 0.069 257.8);
--secondary-foreground: oklch(0.705 0.151 260.681);
--accent: oklch(0.193 0.069 257.8);
--accent-foreground: oklch(0.705 0.151 260.681);
--destructive: oklch(0.492 0.15 40.683);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.261 0.054 77.311);
--chart-1: oklch(0.261 0.054 77.311);
--chart-2: oklch(0.193 0.069 257.8);
--chart-3: oklch(0.193 0.069 257.8);
--chart-4: oklch(0.223 0.085 259.073);
--chart-5: oklch(0.262 0.055 77.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.009 85.675);
--foreground: oklch(0.993 0.001 81.514);
--muted: oklch(0.233 0.009 261.457);
--muted-foreground: oklch(0.683 0.016 261.491);
--popover: oklch(0.12 0.009 85.675);
--popover-foreground: oklch(0.993 0.001 81.514);
--card: oklch(0.12 0.009 85.675);
--card-foreground: oklch(0.993 0.001 81.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.261 0.054 77.311);
--primary-foreground: oklch(0.782 0.17 69.285);
--secondary: oklch(0.193 0.069 257.8);
--secondary-foreground: oklch(0.705 0.151 260.681);
--accent: oklch(0.193 0.069 257.8);
--accent-foreground: oklch(0.705 0.151 260.681);
--destructive: oklch(0.617 0.191 39.962);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.261 0.054 77.311);
--chart-1: oklch(0.261 0.054 77.311);
--chart-2: oklch(0.193 0.069 257.8);
--chart-3: oklch(0.193 0.069 257.8);
--chart-4: oklch(0.223 0.085 259.073);
--chart-5: oklch(0.262 0.055 77.204);
}