Spotless is a shadcn/ui theme built around a vivid deep teal primary color (#041f12) with muted light teal accents (#ceded6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#041f12) on a teal-tinted background (#050b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b08black |
| Foreground | #010503black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #060e0ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060e0ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #041f12black | #041f12black |
| Primary foreground | #1dd37bmediumseagreen | #1dd37bmediumseagreen |
| Secondary | #ceded6lightgrey | #25312cdarkslategray |
| Secondary foreground | #32493edarkslategray | #bccdc5silver |
| Muted | #d3dfd9gainsboro | #202c26darkslategray |
| Muted foreground | #5d6561dimgray | #9aa29edarkgray |
| Accent | #ceded6lightgrey | #25312cdarkslategray |
| Accent foreground | #32493edarkslategray | #bccdc5silver |
| Destructive | #a72a11firebrick | #ea4a2achocolate |
| Destructive foreground | #fdefecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #041f12black | #041f12black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 4.37:1 | AA Large |
| Accent | 6.97:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 8.77:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Spotless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.017 166.252);
--muted: oklch(0.892 0.015 165.55);
--muted-foreground: oklch(0.498 0.011 165.401);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.216 0.043 159.282);
--primary-foreground: oklch(0.763 0.185 154.636);
--secondary: oklch(0.887 0.019 165.418);
--secondary-foreground: oklch(0.382 0.035 163.288);
--accent: oklch(0.887 0.019 165.418);
--accent-foreground: oklch(0.382 0.035 163.288);
--destructive: oklch(0.482 0.166 32.885);
--destructive-foreground: oklch(0.963 0.016 31.078);
--ring: oklch(0.216 0.043 159.282);
--chart-1: oklch(0.216 0.043 159.282);
--chart-2: oklch(0.887 0.019 165.418);
--chart-3: oklch(0.887 0.019 165.418);
--chart-4: oklch(0.908 0.016 165.546);
--chart-5: oklch(0.217 0.044 159.104);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 166.086);
--foreground: oklch(0.993 0.001 165.985);
--muted: oklch(0.281 0.02 163.95);
--muted-foreground: oklch(0.705 0.01 165.62);
--popover: oklch(0.155 0.016 164.411);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.016 164.411);
--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.216 0.043 159.282);
--primary-foreground: oklch(0.763 0.185 154.636);
--secondary: oklch(0.302 0.02 164.15);
--secondary-foreground: oklch(0.832 0.021 165.329);
--accent: oklch(0.302 0.02 164.15);
--accent-foreground: oklch(0.832 0.021 165.329);
--destructive: oklch(0.631 0.202 33.155);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.216 0.043 159.282);
--chart-1: oklch(0.216 0.043 159.282);
--chart-2: oklch(0.302 0.02 164.15);
--chart-3: oklch(0.302 0.02 164.15);
--chart-4: oklch(0.334 0.022 164.079);
--chart-5: oklch(0.217 0.044 159.104);
}