Spotless is a shadcn/ui theme built around a vivid orange primary color (#f2ab64) with muted light orange accents (#cfc4ba). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#f2ab64) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #030302black |
| Foreground | #160d03black | #ffffffwhite |
| Card | #fefcfbsnow | #030302black |
| Card foreground | #160d03black | #ffffffwhite |
| Popover | #fefcfbsnow | #030302black |
| Popover foreground | #160d03black | #ffffffwhite |
| Primary | #f2ab64sandybrown | #f2ab64sandybrown |
| Primary foreground | #211203black | #211203black |
| Secondary | #ddd9d5gainsboro | #2a2623darkslategray |
| Secondary foreground | #464039darkslategray | #c5bfbasilver |
| Muted | #ede3d9antiquewhite | #261c12black |
| Muted foreground | #554d44darkolivegreen | #bbb3aadarkgray |
| Accent | #cfc4basilver | #3e362edarkslategray |
| Accent foreground | #332b24darkslategray | #d6cfc7lightgrey |
| Destructive | #ab1412firebrick | #eb4542tomato |
| Destructive foreground | #fef1f1lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2ab64sandybrown | #f2ab64sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 9.33:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Spotless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 67.791);
--foreground: oklch(0.168 0.026 69.898);
--muted: oklch(0.921 0.018 67.602);
--muted-foreground: oklch(0.424 0.018 67.321);
--popover: oklch(0.993 0.003 67.791);
--popover-foreground: oklch(0.168 0.026 69.898);
--card: oklch(0.993 0.003 67.791);
--card-foreground: oklch(0.168 0.026 69.898);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.794 0.121 64.542);
--primary-foreground: oklch(0.198 0.037 66.487);
--secondary: oklch(0.886 0.007 67.739);
--secondary-foreground: oklch(0.375 0.014 67.386);
--accent: oklch(0.827 0.019 67.564);
--accent-foreground: oklch(0.296 0.018 67.047);
--destructive: oklch(0.473 0.183 28.423);
--destructive-foreground: oklch(0.969 0.013 18.571);
--ring: oklch(0.794 0.121 64.542);
--chart-1: oklch(0.794 0.121 64.542);
--chart-2: oklch(0.886 0.007 67.739);
--chart-3: oklch(0.827 0.019 67.564);
--chart-4: oklch(0.909 0.005 67.757);
--chart-5: oklch(0.797 0.124 64.344);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.006 72.338);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.025 66.15);
--muted-foreground: oklch(0.77 0.015 67.599);
--popover: oklch(0.093 0.006 72.338);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.093 0.006 72.338);
--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.794 0.121 64.542);
--primary-foreground: oklch(0.198 0.037 66.487);
--secondary: oklch(0.272 0.008 67.478);
--secondary-foreground: oklch(0.808 0.01 67.681);
--accent: oklch(0.337 0.018 67.16);
--accent-foreground: oklch(0.857 0.013 67.655);
--destructive: oklch(0.631 0.204 26.013);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.794 0.121 64.542);
--chart-1: oklch(0.794 0.121 64.542);
--chart-2: oklch(0.272 0.008 67.478);
--chart-3: oklch(0.337 0.018 67.16);
--chart-4: oklch(0.304 0.009 67.461);
--chart-5: oklch(0.797 0.124 64.344);
}