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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 4.94:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 7.01:1 | AAA |
| Text on background | 18.94:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 8.02:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 5.19:1 | AA |
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);
}