Soft is a shadcn/ui theme built around a vivid purple primary color (#f183d0) with vivid green accents (#83f1a4). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#f183d0) on a neutral background (#080206).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #080206black |
| Foreground | #040103black | #fdfcfdwhite |
| Card | #fefbfdsnow | #080206black |
| Card foreground | #040103black | #fdfcfdwhite |
| Popover | #fefbfdsnow | #080206black |
| Popover foreground | #040103black | #fdfcfdwhite |
| Primary | #f183d0violet | #f183d0violet |
| Primary foreground | #3c072cblack | #3c072cblack |
| Secondary | #83f1a4lightgreen | #83f1a4lightgreen |
| Secondary foreground | #073c17darkgreen | #073c17darkgreen |
| Muted | #d4ddd7gainsboro | #222b24darkslategray |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #83f1a4lightgreen | #83f1a4lightgreen |
| Accent foreground | #073c17darkgreen | #073c17darkgreen |
| Destructive | #79150cmaroon | #ec4f41tomato |
| Destructive foreground | #f9c3belightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f183d0violet | #f183d0violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 9.06:1 | AAA |
| Muted text | 5.05:1 | AA |
| Accent | 9.06:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 9.06:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 9.06:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Soft in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 335.935);
--foreground: oklch(0.083 0.024 336.564);
--muted: oklch(0.89 0.013 155.585);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.991 0.003 335.935);
--popover-foreground: oklch(0.083 0.024 336.564);
--card: oklch(0.991 0.003 335.935);
--card-foreground: oklch(0.083 0.024 336.564);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.755 0.162 339.606);
--primary-foreground: oklch(0.246 0.092 343.127);
--secondary: oklch(0.873 0.148 151.959);
--secondary-foreground: oklch(0.312 0.083 148.417);
--accent: oklch(0.873 0.148 151.959);
--accent-foreground: oklch(0.312 0.083 148.417);
--destructive: oklch(0.374 0.135 29.92);
--destructive-foreground: oklch(0.863 0.062 24.43);
--ring: oklch(0.755 0.162 339.606);
--chart-1: oklch(0.755 0.162 339.606);
--chart-2: oklch(0.873 0.148 151.959);
--chart-3: oklch(0.873 0.148 151.959);
--chart-4: oklch(0.885 0.133 152.51);
--chart-5: oklch(0.755 0.168 339.739);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.024 336.428);
--foreground: oklch(0.992 0.002 335.913);
--muted: oklch(0.277 0.017 154.614);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.107 0.024 336.428);
--popover-foreground: oklch(0.992 0.002 335.913);
--card: oklch(0.107 0.024 336.428);
--card-foreground: oklch(0.992 0.002 335.913);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.755 0.162 339.606);
--primary-foreground: oklch(0.246 0.092 343.127);
--secondary: oklch(0.873 0.148 151.959);
--secondary-foreground: oklch(0.312 0.083 148.417);
--accent: oklch(0.873 0.148 151.959);
--accent-foreground: oklch(0.312 0.083 148.417);
--destructive: oklch(0.643 0.196 28.842);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.755 0.162 339.606);
--chart-1: oklch(0.755 0.162 339.606);
--chart-2: oklch(0.873 0.148 151.959);
--chart-3: oklch(0.873 0.148 151.959);
--chart-4: oklch(0.885 0.133 152.51);
--chart-5: oklch(0.755 0.168 339.739);
}