Salty is a shadcn/ui theme built around a purple primary color (#be6aa6) with muted light purple accents (#deceda). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the purple primary (#be6aa6) on a neutral background (#080206).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #080206black |
| Foreground | #150510black | #fdfcfdwhite |
| Card | #fdfcfdwhite | #080206black |
| Card foreground | #150510black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #080206black |
| Popover foreground | #150510black | #fdfcfdwhite |
| Primary | #be6aa6palevioletred | #be6aa6palevioletred |
| Primary foreground | #000000black | #000000black |
| Secondary | #decedalightgrey | #282527darkslategray |
| Secondary foreground | #493143darkslategray | #c2bdc0silver |
| Muted | #f1e5edlinen | #1a0e17black |
| Muted foreground | #666065dimgray | #9f999ddarkgray |
| Accent | #decedalightgrey | #282527darkslategray |
| Accent foreground | #493143darkslategray | #c2bdc0silver |
| Destructive | #9a1504darkred | #ea2106red |
| Destructive foreground | #fed7d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be6aa6palevioletred | #be6aa6palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Salty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 335.24);
--foreground: oklch(0.149 0.038 338.523);
--muted: oklch(0.933 0.017 335.519);
--muted-foreground: oklch(0.498 0.01 335.554);
--popover: oklch(0.991 0.003 335.24);
--popover-foreground: oklch(0.149 0.038 338.523);
--card: oklch(0.991 0.003 335.24);
--card-foreground: oklch(0.149 0.038 338.523);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.13 338.606);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.868 0.024 335.683);
--secondary-foreground: oklch(0.348 0.045 337.387);
--accent: oklch(0.868 0.024 335.683);
--accent-foreground: oklch(0.348 0.045 337.387);
--destructive: oklch(0.441 0.168 30.996);
--destructive-foreground: oklch(0.911 0.044 26.834);
--ring: oklch(0.638 0.13 338.606);
--chart-1: oklch(0.638 0.13 338.606);
--chart-2: oklch(0.868 0.024 335.683);
--chart-3: oklch(0.868 0.024 335.683);
--chart-4: oklch(0.893 0.019 335.579);
--chart-5: oklch(0.638 0.139 338.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.021 335.752);
--foreground: oklch(0.992 0.002 335.219);
--muted: oklch(0.186 0.025 337.506);
--muted-foreground: oklch(0.688 0.009 335.434);
--popover: oklch(0.108 0.021 335.752);
--popover-foreground: oklch(0.992 0.002 335.219);
--card: oklch(0.108 0.021 335.752);
--card-foreground: oklch(0.992 0.002 335.219);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.638 0.13 338.606);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.267 0.006 335.594);
--secondary-foreground: oklch(0.803 0.008 335.363);
--accent: oklch(0.267 0.006 335.594);
--accent-foreground: oklch(0.803 0.008 335.363);
--destructive: oklch(0.598 0.232 30.667);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.13 338.606);
--chart-1: oklch(0.638 0.13 338.606);
--chart-2: oklch(0.267 0.006 335.594);
--chart-3: oklch(0.267 0.006 335.594);
--chart-4: oklch(0.298 0.007 335.613);
--chart-5: oklch(0.638 0.139 338.854);
}