Rough Wisteria Purple is a shadcn/ui theme built around a muted violet primary color (#865f9b) with muted purple accents (#9b5f92). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#865f9b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #000000black |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #fbf7fdghostwhite | #000000black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fbf7fdghostwhite | #000000black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #865f9bslategray | #865f9bslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #685f9bslategray | #685f9bslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d8d5ecgainsboro | #16132ablack |
| Muted foreground | #4e4c5ddarkslategray | #a5a2b3darkgray |
| Accent | #9b5f92gray | #9b5f92gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #640c02maroon | #eb1c05red |
| Destructive foreground | #fda59blightsalmon | #ffffffwhite |
| Border | #e8e7e9lavender | #272527darkslategray |
| Input | #e8e7e9lavender | #272527darkslategray |
| Ring | #865f9bslategray | #865f9bslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 5.09:1 | AA |
| Secondary button | 5.68:1 | AA |
| Muted text | 5.81:1 | AA |
| Accent | 4.72:1 | AA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 5.09:1 | AA |
| Secondary button | 5.68:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 4.72:1 | AA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Rough Wisteria Purple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 314.173);
--foreground: oklch(0 0 0);
--muted: oklch(0.882 0.032 292.621);
--muted-foreground: oklch(0.424 0.028 292.051);
--popover: oklch(0.981 0.008 314.173);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.008 314.173);
--card-foreground: oklch(0 0 0);
--border: oklch(0.93 0.002 314.207);
--input: oklch(0.93 0.002 314.207);
--primary: oklch(0.549 0.1 313.161);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.52 0.093 289.621);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.104 332.428);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.324 0.122 31.256);
--destructive-foreground: oklch(0.806 0.106 26.587);
--ring: oklch(0.549 0.1 313.161);
--chart-1: oklch(0.549 0.1 313.161);
--chart-2: oklch(0.52 0.093 289.621);
--chart-3: oklch(0.569 0.104 332.428);
--chart-4: oklch(0.547 0.09 289.948);
--chart-5: oklch(0.546 0.112 313.001);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.004 314.198);
--muted: oklch(0.204 0.045 288.607);
--muted-foreground: oklch(0.721 0.024 292.669);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.004 314.198);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.004 314.198);
--border: oklch(0.267 0.005 314.122);
--input: oklch(0.267 0.005 314.122);
--primary: oklch(0.549 0.1 313.161);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.52 0.093 289.621);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.104 332.428);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.598 0.235 30.313);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.549 0.1 313.161);
--chart-1: oklch(0.549 0.1 313.161);
--chart-2: oklch(0.52 0.093 289.621);
--chart-3: oklch(0.569 0.104 332.428);
--chart-4: oklch(0.547 0.09 289.948);
--chart-5: oklch(0.546 0.112 313.001);
}