Clean for shadcn/ui

Clean is a shadcn/ui theme built around a light purple primary color (#efe4f1) with muted red accents (#c2b7b7). The light mode uses a neutral background (#fcf6fd). Dark mode keeps the light purple primary (#efe4f1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf6fdghostwhite
#000000black
Foreground
#0b030dblack
#f8f6f9whitesmoke
Card
#fcf6fdghostwhite
#000000black
Card foreground
#0b030dblack
#f8f6f9whitesmoke
Popover
#fcf6fdghostwhite
#000000black
Popover foreground
#0b030dblack
#f8f6f9whitesmoke
Primary
#efe4f1lavender
#efe4f1lavender
Primary foreground
#62376ddarkslateblue
#62376ddarkslateblue
Secondary
#d1d1d1lightgrey
#29212bdarkslategray
Secondary foreground
#383838darkslategray
#c4b7c8silver
Muted
#f1e4e4mistyrose
#180e1bblack
Muted foreground
#554444darkslategray
#b8aabbdarkgray
Accent
#c2b7b7silver
#48324edarkslategray
Accent foreground
#272121black
#ded0e1gainsboro
Destructive
#bc3615firebrick
#e74a23chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efe4f1lavender
#efe4f1lavender

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button7.44:1AAA
Secondary button7.68:1AAA
Muted text7.38:1AAA
Accent8.13:1AAA
Destructive5.69:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.44:1AAA
Secondary button8.10:1AAA
Muted text8.50:1AAA
Accent7.73:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Clean in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.011 319.447);
  --foreground: oklch(0.119 0.033 321.224);
  --muted: oklch(0.929 0.014 17.413);
  --muted-foreground: oklch(0.405 0.023 18.155);
  --popover: oklch(0.981 0.011 319.447);
  --popover-foreground: oklch(0.119 0.033 321.224);
  --card: oklch(0.981 0.011 319.447);
  --card-foreground: oklch(0.119 0.033 321.224);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.931 0.021 319.451);
  --primary-foreground: oklch(0.411 0.1 319.368);
  --secondary: oklch(0.861 0 180);
  --secondary-foreground: oklch(0.341 0 158.199);
  --accent: oklch(0.789 0.012 17.412);
  --accent-foreground: oklch(0.254 0.009 17.743);
  --destructive: oklch(0.532 0.176 34.399);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.021 319.451);
  --chart-1: oklch(0.931 0.021 319.451);
  --chart-2: oklch(0.861 0 180);
  --chart-3: oklch(0.789 0.012 17.412);
  --chart-4: oklch(0.885 0 180);
  --chart-5: oklch(0.93 0.023 319.451);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.006 319.446);
  --muted: oklch(0.184 0.03 319.449);
  --muted-foreground: oklch(0.755 0.028 319.455);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.006 319.446);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.006 319.446);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.931 0.021 319.451);
  --primary-foreground: oklch(0.411 0.1 319.368);
  --secondary: oklch(0.262 0.022 319.463);
  --secondary-foreground: oklch(0.795 0.027 319.454);
  --accent: oklch(0.354 0.056 319.453);
  --accent-foreground: oklch(0.875 0.027 319.453);
  --destructive: oklch(0.625 0.2 34.658);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.021 319.451);
  --chart-1: oklch(0.931 0.021 319.451);
  --chart-2: oklch(0.262 0.022 319.463);
  --chart-3: oklch(0.354 0.056 319.453);
  --chart-4: oklch(0.292 0.025 319.464);
  --chart-5: oklch(0.93 0.023 319.451);
}