Salon for shadcn/ui

Salon is a shadcn/ui theme built around a light violet primary color (#d9c5e7) with light green accents (#d3e7c5). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#d9c5e7) on a violet-tinted background (#08040c).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#08040cblack
Foreground
#030104black
#f8f6f9whitesmoke
Card
#f8f4fawhitesmoke
#0b0510black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#f8f4fawhitesmoke
#0b0510black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#d9c5e7thistle
#d9c5e7thistle
Primary foreground
#412357darkslategray
#412357darkslategray
Secondary
#d3e7c5lightgrey
#d3e7c5lightgrey
Secondary foreground
#395723darkolivegreen
#395723darkolivegreen
Muted
#f2f6efwhitesmoke
#0c1009black
Muted foreground
#5e6f52dimgray
#9cad90darkseagreen
Accent
#d3e7c5lightgrey
#d3e7c5lightgrey
Accent foreground
#395723darkolivegreen
#395723darkolivegreen
Destructive
#76130amaroon
#d42111firebrick
Destructive foreground
#f9beb8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9c5e7thistle
#d9c5e7thistle

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.33:1AAA
Primary button8.17:1AAA
Secondary button6.26:1AA
Muted text4.94:1AA
Accent6.26:1AA
Destructive7.01:1AAA
Dark mode
Text on background18.94:1AAA
Text on card19.20:1AAA
Primary button8.17:1AAA
Secondary button6.26:1AA
Muted text8.02:1AAA
Accent6.26:1AA
Destructive5.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 311.674);
  --foreground: oklch(0.08 0.022 313.941);
  --muted: oklch(0.967 0.01 131.809);
  --muted-foreground: oklch(0.521 0.049 132.541);
  --popover: oklch(0.972 0.009 311.648);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.009 311.648);
  --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.851 0.052 311.238);
  --primary-foreground: oklch(0.323 0.093 309.061);
  --secondary: oklch(0.905 0.05 132.193);
  --secondary-foreground: oklch(0.42 0.086 133.926);
  --accent: oklch(0.905 0.05 132.193);
  --accent-foreground: oklch(0.42 0.086 133.926);
  --destructive: oklch(0.367 0.135 29.988);
  --destructive-foreground: oklch(0.853 0.07 24.565);
  --ring: oklch(0.851 0.052 311.238);
  --chart-1: oklch(0.851 0.052 311.238);
  --chart-2: oklch(0.905 0.05 132.193);
  --chart-3: oklch(0.905 0.05 132.193);
  --chart-4: oklch(0.923 0.041 132.094);
  --chart-5: oklch(0.849 0.055 311.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.025 313.227);
  --foreground: oklch(0.975 0.004 311.687);
  --muted: oklch(0.167 0.015 132.489);
  --muted-foreground: oklch(0.725 0.045 132.251);
  --popover: oklch(0.131 0.029 311.72);
  --popover-foreground: oklch(0.983 0.003 311.7);
  --card: oklch(0.131 0.029 311.72);
  --card-foreground: oklch(0.983 0.003 311.7);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.851 0.052 311.238);
  --primary-foreground: oklch(0.323 0.093 309.061);
  --secondary: oklch(0.905 0.05 132.193);
  --secondary-foreground: oklch(0.42 0.086 133.926);
  --accent: oklch(0.905 0.05 132.193);
  --accent-foreground: oklch(0.42 0.086 133.926);
  --destructive: oklch(0.559 0.213 30.089);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.052 311.238);
  --chart-1: oklch(0.851 0.052 311.238);
  --chart-2: oklch(0.905 0.05 132.193);
  --chart-3: oklch(0.905 0.05 132.193);
  --chart-4: oklch(0.923 0.041 132.094);
  --chart-5: oklch(0.849 0.055 311.202);
}