Spotless for shadcn/ui

Spotless is a shadcn/ui theme built around a light green primary color (#f1f7de) with light violet accents (#e4def7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f1f7de) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#0b0d02black
#fdfdfcwhite
Card
#ffffffwhite
#030401black
Card foreground
#0b0d02black
#fdfdfcwhite
Popover
#ffffffwhite
#030401black
Popover foreground
#0b0d02black
#fdfdfcwhite
Primary
#f1f7debeige
#f1f7debeige
Primary foreground
#28320bblack
#28320bblack
Secondary
#e4def7lavender
#e4def7lavender
Secondary foreground
#381e85darkslateblue
#381e85darkslateblue
Muted
#d1cae8thistle
#1f1735midnightblue
Muted foreground
#4b4950darkslategray
#b1afb6darkgray
Accent
#e4def7lavender
#e4def7lavender
Accent foreground
#381e85darkslateblue
#381e85darkslateblue
Destructive
#791806maroon
#df2b0corangered
Destructive foreground
#fbc1b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1f7debeige
#f1f7debeige

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button12.34:1AAA
Secondary button9.49:1AAA
Muted text5.62:1AA
Accent9.49:1AAA
Destructive6.89:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button12.34:1AAA
Secondary button9.49:1AAA
Muted text7.83:1AAA
Accent9.49:1AAA
Destructive4.67:1AA

CSS variables

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.153 0.028 118.82);
  --muted: oklch(0.854 0.042 296.952);
  --muted-foreground: oklch(0.411 0.01 297.381);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.153 0.028 118.82);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.153 0.028 118.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.966 0.034 118.458);
  --primary-foreground: oklch(0.298 0.06 122.135);
  --secondary: oklch(0.913 0.035 297.135);
  --secondary-foreground: oklch(0.344 0.159 286.011);
  --accent: oklch(0.913 0.035 297.135);
  --accent-foreground: oklch(0.344 0.159 286.011);
  --destructive: oklch(0.377 0.134 32.224);
  --destructive-foreground: oklch(0.86 0.069 29.973);
  --ring: oklch(0.966 0.034 118.458);
  --chart-1: oklch(0.966 0.034 118.458);
  --chart-2: oklch(0.913 0.035 297.135);
  --chart-3: oklch(0.913 0.035 297.135);
  --chart-4: oklch(0.946 0.022 297.414);
  --chart-5: oklch(0.967 0.036 118.487);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.012 117.985);
  --foreground: oklch(0.994 0.002 117.854);
  --muted: oklch(0.232 0.056 293.013);
  --muted-foreground: oklch(0.759 0.009 297.619);
  --popover: oklch(0.1 0.012 117.985);
  --popover-foreground: oklch(0.994 0.002 117.854);
  --card: oklch(0.1 0.012 117.985);
  --card-foreground: oklch(0.994 0.002 117.854);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.966 0.034 118.458);
  --primary-foreground: oklch(0.298 0.06 122.135);
  --secondary: oklch(0.913 0.035 297.135);
  --secondary-foreground: oklch(0.344 0.159 286.011);
  --accent: oklch(0.913 0.035 297.135);
  --accent-foreground: oklch(0.344 0.159 286.011);
  --destructive: oklch(0.584 0.217 31.766);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.966 0.034 118.458);
  --chart-1: oklch(0.966 0.034 118.458);
  --chart-2: oklch(0.913 0.035 297.135);
  --chart-3: oklch(0.913 0.035 297.135);
  --chart-4: oklch(0.946 0.022 297.414);
  --chart-5: oklch(0.967 0.036 118.487);
}