Neutral Lightish Purple is a shadcn/ui theme built around a violet primary color (#9b54de) with purple accents (#de54dc). The light mode uses a neutral background (#faf7fd). Dark mode keeps the violet primary (#9b54de) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #08050ablack |
| Foreground | #0d0415black | #ffffffwhite |
| Card | #faf7fdghostwhite | #08050ablack |
| Card foreground | #0d0415black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #08050ablack |
| Popover foreground | #0d0415black | #ffffffwhite |
| Primary | #9b54demediumpurple | #9b54demediumpurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5654deslateblue | #5654deslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e7f3lavender | #0c0c18black |
| Muted foreground | #4f4f54darkslategray | #ababb0darkgray |
| Accent | #de54dcorchid | #de54dcorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #e05206orangered | #fa7c38coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e6e3e8gainsboro | #26222adarkslategray |
| Input | #e6e3e8gainsboro | #26222adarkslategray |
| Ring | #9b54demediumpurple | #9b54demediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 4.45:1 | AA Large |
| Secondary button | 5.65:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 6.40:1 | AA |
| Destructive | 3.90:1 | AA Large |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 4.45:1 | AA Large |
| Secondary button | 5.65:1 | AA |
| Muted text | 8.48:1 | AAA |
| Accent | 6.40:1 | AA |
| Destructive | 7.99:1 | AAA |
Paste this into your globals.css to use Neutral Lightish Purple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 309.038);
--foreground: oklch(0.138 0.04 307.495);
--muted: oklch(0.933 0.015 286.866);
--muted-foreground: oklch(0.43 0.008 286.826);
--popover: oklch(0.98 0.008 309.038);
--popover-foreground: oklch(0.138 0.04 307.495);
--card: oklch(0.98 0.008 309.038);
--card-foreground: oklch(0.138 0.04 307.495);
--border: oklch(0.919 0.007 309.041);
--input: oklch(0.919 0.007 309.041);
--primary: oklch(0.594 0.205 304.671);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.531 0.205 277.54);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.676 0.23 328.428);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.622 0.19 40.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.594 0.205 304.671);
--chart-1: oklch(0.594 0.205 304.671);
--chart-2: oklch(0.531 0.205 277.54);
--chart-3: oklch(0.676 0.23 328.428);
--chart-4: oklch(0.563 0.19 279.133);
--chart-5: oklch(0.593 0.213 304.396);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 310.121);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.024 284.15);
--muted-foreground: oklch(0.743 0.007 286.997);
--popover: oklch(0.123 0.016 310.121);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.016 310.121);
--card-foreground: oklch(1 0 180);
--border: oklch(0.261 0.015 308.518);
--input: oklch(0.261 0.015 308.518);
--primary: oklch(0.594 0.205 304.671);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.531 0.205 277.54);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.676 0.23 328.428);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.721 0.173 45.956);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.594 0.205 304.671);
--chart-1: oklch(0.594 0.205 304.671);
--chart-2: oklch(0.531 0.205 277.54);
--chart-3: oklch(0.676 0.23 328.428);
--chart-4: oklch(0.563 0.19 279.133);
--chart-5: oklch(0.593 0.213 304.396);
}