Varied Aubergine Perl is a shadcn/ui theme built around a vivid violet primary color (#7c3aed) with muted light blue accents (#f3f4f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#4608ad) on a neutral background (#131213).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #131213black |
| Foreground | #030712black | #f9fafbghostwhite |
| Card | #ffffffwhite | #1b1b1dblack |
| Card foreground | #030712black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #131213black |
| Popover foreground | #030712black | #f9fafbghostwhite |
| Primary | #7c3aedblueviolet | #4608adindigo |
| Primary foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Secondary | #2196f3dodgerblue | #2196f3dodgerblue |
| Secondary foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Muted | #f1ebf8whitesmoke | #2b2a2adarkslategray |
| Muted foreground | #6b7280slategray | #9ca3afdarkgray |
| Accent | #f3f4f6whitesmoke | #2c105bmidnightblue |
| Accent foreground | #111827black | #f9fafbghostwhite |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Border | #e5e7eblavender | #222124black |
| Input | #e5e7eblavender | #4a4a4adarkslategray |
| Ring | #7c3aedblueviolet | #6d28d9blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.46:1 | AA |
| Secondary button | 2.98:1 | Fail |
| Muted text | 4.13:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 17.88:1 | AAA |
| Text on card | 16.42:1 | AAA |
| Primary button | 10.58:1 | AAA |
| Secondary button | 2.98:1 | Fail |
| Muted text | 5.63:1 | AA |
| Accent | 15.11:1 | AAA |
| Destructive | 9.58:1 | AAA |
Paste this into your globals.css to use Varied Aubergine Perl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.027 261.671);
--muted: oklch(0.949 0.018 306.66);
--muted-foreground: oklch(0.551 0.023 264.365);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.027 261.671);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.027 261.671);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.541 0.247 292.951);
--primary-foreground: oklch(0.984 0.002 247.84);
--secondary: oklch(0.658 0.169 248.81);
--secondary-foreground: oklch(0.985 0.002 247.839);
--accent: oklch(0.967 0.003 264.542);
--accent-foreground: oklch(0.21 0.032 264.652);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.984 0.002 247.84);
--ring: oklch(0.541 0.247 292.951);
--chart-1: oklch(0.677 0.157 35.19);
--chart-2: oklch(0.631 0.101 183.491);
--chart-3: oklch(0.379 0.044 225.539);
--chart-4: oklch(0.834 0.119 88.146);
--chart-5: oklch(0.783 0.126 58.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.184 0.003 325.68);
--foreground: oklch(0.984 0.002 247.84);
--muted: oklch(0.286 0.001 17.242);
--muted-foreground: oklch(0.714 0.019 261.333);
--popover: oklch(0.184 0.003 325.68);
--popover-foreground: oklch(0.984 0.002 247.84);
--card: oklch(0.224 0.003 287.692);
--card-foreground: oklch(0.984 0.002 247.84);
--border: oklch(0.251 0.005 297.854);
--input: oklch(0.409 0 180);
--primary: oklch(0.384 0.216 286.642);
--primary-foreground: oklch(0.984 0.002 247.84);
--secondary: oklch(0.658 0.169 248.81);
--secondary-foreground: oklch(0.984 0.002 247.84);
--accent: oklch(0.269 0.123 293.328);
--accent-foreground: oklch(0.984 0.002 247.84);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.984 0.002 247.84);
--ring: oklch(0.491 0.241 292.588);
--chart-1: oklch(0.529 0.193 262.129);
--chart-2: oklch(0.698 0.134 165.463);
--chart-3: oklch(0.723 0.15 60.631);
--chart-4: oklch(0.619 0.204 312.728);
--chart-5: oklch(0.612 0.209 6.386);
}