Spotless is a shadcn/ui theme built around a muted indigo primary color (#7e7bad) with neutral gray accents (#d7d7db). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#7e7bad) on an indigo-tinted background (#07060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07060eblack |
| Foreground | #03020dblack | #f5f5fawhitesmoke |
| Card | #ffffffwhite | #07060eblack |
| Card foreground | #03020dblack | #f5f5fawhitesmoke |
| Popover | #ffffffwhite | #07060eblack |
| Popover foreground | #03020dblack | #f5f5fawhitesmoke |
| Primary | #7e7badlightslategray | #7e7badlightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d7d7dbgainsboro | #28273adarkslategray |
| Secondary foreground | #3d3d43darkslategray | #c0bfd4lightsteelblue |
| Muted | #d4d3e4gainsboro | #1c1b2cblack |
| Muted foreground | #52516cdimgray | #9593aedarkgray |
| Accent | #d7d7dbgainsboro | #28273adarkslategray |
| Accent foreground | #3d3d43darkslategray | #c0bfd4lightsteelblue |
| Destructive | #c6120cfirebrick | #e7150dred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e7badlightslategray | #7e7badlightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.03:1 | AA |
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 5.32:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.64:1 | AA |
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.033 282.629);
--muted: oklch(0.872 0.023 288.202);
--muted-foreground: oklch(0.447 0.043 286.813);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.033 282.629);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.033 282.629);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.605 0.074 286.24);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.88 0.005 288.599);
--secondary-foreground: oklch(0.361 0.011 288.139);
--accent: oklch(0.88 0.005 288.599);
--accent-foreground: oklch(0.361 0.011 288.139);
--destructive: oklch(0.524 0.207 29.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.074 286.24);
--chart-1: oklch(0.605 0.074 286.24);
--chart-2: oklch(0.88 0.005 288.599);
--chart-3: oklch(0.88 0.005 288.599);
--chart-4: oklch(0.904 0.004 288.624);
--chart-5: oklch(0.598 0.084 285.84);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.019 286.146);
--foreground: oklch(0.971 0.007 288.581);
--muted: oklch(0.232 0.033 285.833);
--muted-foreground: oklch(0.675 0.039 287.606);
--popover: oklch(0.129 0.019 286.146);
--popover-foreground: oklch(0.971 0.007 288.581);
--card: oklch(0.129 0.019 286.146);
--card-foreground: oklch(0.971 0.007 288.581);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.605 0.074 286.24);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.283 0.034 286.334);
--secondary-foreground: oklch(0.813 0.028 288.047);
--accent: oklch(0.283 0.034 286.334);
--accent-foreground: oklch(0.813 0.028 288.047);
--destructive: oklch(0.589 0.234 29.216);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.074 286.24);
--chart-1: oklch(0.605 0.074 286.24);
--chart-2: oklch(0.283 0.034 286.334);
--chart-3: oklch(0.283 0.034 286.334);
--chart-4: oklch(0.31 0.038 286.243);
--chart-5: oklch(0.598 0.084 285.84);
}