Purplish 1 is a shadcn/ui theme built around a vivid indigo primary color (#3b0aeb) with vivid violet accents (#ab0aeb). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#3b0aeb) on an indigo-tinted background (#07050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #07050fblack |
| Foreground | #060212black | #fcfcfdwhite |
| Card | #f9f7fcghostwhite | #090613black |
| Card foreground | #04020eblack | #ffffffwhite |
| Popover | #f9f7fcghostwhite | #090613black |
| Popover foreground | #04020eblack | #ffffffwhite |
| Primary | #3b0aebblue | #3b0aebblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #0a4aebroyalblue | #0a4aebroyalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaedf6lavender | #090d15black |
| Muted foreground | #5b606bdimgray | #9498a4darkgray |
| Accent | #ab0aebdarkviolet | #ab0aebdarkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #822903saddlebrown | #f54d05orangered |
| Destructive foreground | #feceb9peachpuff | #ffffffwhite |
| Border | #e2e1e5gainsboro | #19181bblack |
| Input | #e2e1e5gainsboro | #19181bblack |
| Ring | #3b0aebblue | #3b0aebblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 5.39:1 | AA |
| Accent | 5.27:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 5.27:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Purplish 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 296.27);
--foreground: oklch(0.113 0.042 293.18);
--muted: oklch(0.947 0.012 268.701);
--muted-foreground: oklch(0.489 0.019 268.474);
--popover: oklch(0.98 0.007 296.209);
--popover-foreground: oklch(0.102 0.036 294.507);
--card: oklch(0.98 0.007 296.209);
--card-foreground: oklch(0.102 0.036 294.507);
--border: oklch(0.912 0.005 296.239);
--input: oklch(0.912 0.005 296.239);
--primary: oklch(0.449 0.28 273.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.248 263.524);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.568 0.282 311.468);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.412 0.13 39.041);
--destructive-foreground: oklch(0.887 0.061 44.414);
--ring: oklch(0.449 0.28 273.859);
--chart-1: oklch(0.449 0.28 273.859);
--chart-2: oklch(0.496 0.248 263.524);
--chart-3: oklch(0.568 0.282 311.468);
--chart-4: oklch(0.517 0.252 263.529);
--chart-5: oklch(0.451 0.285 273.033);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.025 294.69);
--foreground: oklch(0.991 0.001 296.305);
--muted: oklch(0.159 0.019 267.581);
--muted-foreground: oklch(0.68 0.018 268.593);
--popover: oklch(0.137 0.029 293.464);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.029 293.464);
--card-foreground: oklch(1 0 180);
--border: oklch(0.211 0.006 295.808);
--input: oklch(0.211 0.006 295.808);
--primary: oklch(0.449 0.28 273.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.248 263.524);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.568 0.282 311.468);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.651 0.214 37.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.449 0.28 273.859);
--chart-1: oklch(0.449 0.28 273.859);
--chart-2: oklch(0.496 0.248 263.524);
--chart-3: oklch(0.568 0.282 311.468);
--chart-4: oklch(0.517 0.252 263.529);
--chart-5: oklch(0.451 0.285 273.033);
}