Inner Purple Vanity is a shadcn/ui theme built around a violet primary color (#a02cce) with muted light violet accents (#d8d1db). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a02cce) on a violet-tinted background (#09040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #09040bblack |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #0c050fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf7fdghostwhite | #0c050fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a02ccedarkorchid | #a02ccedarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8d1dblightgrey | #1c1b1dblack |
| Secondary foreground | #403645darkslategray | #b6b4b7silver |
| Muted | #efe9f2lavender | #140d16black |
| Muted foreground | #575558dimgray | #a9a7aadarkgray |
| Accent | #d8d1dblightgrey | #1c1b1dblack |
| Accent foreground | #403645darkslategray | #b6b4b7silver |
| Destructive | #af210efirebrick | #ef4a34tomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #f0eff1whitesmoke | #252126darkslategray |
| Input | #f0eff1whitesmoke | #252126darkslategray |
| Ring | #a02ccedarkorchid | #a02ccedarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Inner Purple Vanity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 316.596);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.014 316.566);
--muted-foreground: oklch(0.453 0.006 316.567);
--popover: oklch(0.981 0.009 316.583);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 316.583);
--card-foreground: oklch(0 0 0);
--border: oklch(0.953 0.003 316.599);
--input: oklch(0.953 0.003 316.599);
--primary: oklch(0.547 0.237 313.844);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.87 0.015 316.557);
--secondary-foreground: oklch(0.349 0.029 316.368);
--accent: oklch(0.87 0.015 316.557);
--accent-foreground: oklch(0.349 0.029 316.368);
--destructive: oklch(0.488 0.179 31.006);
--destructive-foreground: oklch(0.971 0.013 26.529);
--ring: oklch(0.547 0.237 313.844);
--chart-1: oklch(0.547 0.237 313.844);
--chart-2: oklch(0.87 0.015 316.557);
--chart-3: oklch(0.87 0.015 316.557);
--chart-4: oklch(0.895 0.012 316.568);
--chart-5: oklch(0.549 0.244 313.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.024 318.126);
--foreground: oklch(0.992 0.001 316.605);
--muted: oklch(0.174 0.021 316.252);
--muted-foreground: oklch(0.73 0.006 316.586);
--popover: oklch(0.135 0.027 316.995);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.027 316.995);
--card-foreground: oklch(1 0 180);
--border: oklch(0.255 0.011 316.487);
--input: oklch(0.255 0.011 316.487);
--primary: oklch(0.547 0.237 313.844);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.226 0.002 316.577);
--secondary-foreground: oklch(0.771 0.005 316.591);
--accent: oklch(0.226 0.002 316.577);
--accent-foreground: oklch(0.771 0.005 316.591);
--destructive: oklch(0.64 0.205 30.793);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.547 0.237 313.844);
--chart-1: oklch(0.547 0.237 313.844);
--chart-2: oklch(0.226 0.002 316.577);
--chart-3: oklch(0.226 0.002 316.577);
--chart-4: oklch(0.258 0.003 316.574);
--chart-5: oklch(0.549 0.244 313.609);
}