Spotless is a shadcn/ui theme built around a muted teal primary color (#91b0b1) with muted red accents (#b19191). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#91b0b1) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #010404black |
| Foreground | #031617black | #f7f8f8whitesmoke |
| Card | #f7fdfdmintcream | #020808black |
| Card foreground | #021212black | #f9fafaghostwhite |
| Popover | #f7fdfdmintcream | #020808black |
| Popover foreground | #021212black | #f9fafaghostwhite |
| Primary | #91b0b1darkgray | #91b0b1darkgray |
| Primary foreground | #060909black | #060909black |
| Secondary | #b19191rosybrown | #b19191rosybrown |
| Secondary foreground | #090606black | #090606black |
| Muted | #e6e0e0gainsboro | #1f1919black |
| Muted foreground | #5d4b4bdarkolivegreen | #b4a2a2darkgray |
| Accent | #b19191rosybrown | #b19191rosybrown |
| Accent foreground | #090606black | #090606black |
| Destructive | #a22c01firebrick | #fe5416orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91b0b1darkgray | #91b0b1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.28:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 8.61:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.04:1 | AAA |
| Destructive | 3.24:1 | AA Large |
Paste this into your globals.css to use Spotless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 198.318);
--foreground: oklch(0.185 0.027 196.504);
--muted: oklch(0.911 0.007 18.483);
--muted-foreground: oklch(0.432 0.025 19.294);
--popover: oklch(0.989 0.006 198.274);
--popover-foreground: oklch(0.167 0.024 196.424);
--card: oklch(0.989 0.006 198.274);
--card-foreground: oklch(0.167 0.024 196.424);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.734 0.034 197.698);
--primary-foreground: oklch(0.136 0.005 197.711);
--secondary: oklch(0.686 0.038 19.266);
--secondary-foreground: oklch(0.129 0.005 19.168);
--accent: oklch(0.686 0.038 19.266);
--accent-foreground: oklch(0.129 0.005 19.168);
--destructive: oklch(0.475 0.161 36.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.734 0.034 197.698);
--chart-1: oklch(0.734 0.034 197.698);
--chart-2: oklch(0.686 0.038 19.266);
--chart-3: oklch(0.686 0.038 19.266);
--chart-4: oklch(0.712 0.035 19.144);
--chart-5: oklch(0.739 0.04 197.604);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 196.507);
--foreground: oklch(0.978 0.002 198.338);
--muted: oklch(0.22 0.011 19.135);
--muted-foreground: oklch(0.728 0.021 18.823);
--popover: oklch(0.126 0.014 196.507);
--popover-foreground: oklch(0.986 0.001 198.346);
--card: oklch(0.126 0.014 196.507);
--card-foreground: oklch(0.986 0.001 198.346);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.734 0.034 197.698);
--primary-foreground: oklch(0.136 0.005 197.711);
--secondary: oklch(0.686 0.038 19.266);
--secondary-foreground: oklch(0.129 0.005 19.168);
--accent: oklch(0.686 0.038 19.266);
--accent-foreground: oklch(0.129 0.005 19.168);
--destructive: oklch(0.673 0.216 37.168);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.734 0.034 197.698);
--chart-1: oklch(0.734 0.034 197.698);
--chart-2: oklch(0.686 0.038 19.266);
--chart-3: oklch(0.686 0.038 19.266);
--chart-4: oklch(0.712 0.035 19.144);
--chart-5: oklch(0.739 0.04 197.604);
}