Wrinkle is a shadcn/ui theme built around a violet primary color (#a769dd) with muted violet accents (#beafca). The light mode uses a neutral background (#faf7fd). Dark mode keeps the violet primary (#a769dd) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #030104black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #f8f3fbghostwhite | #050208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #030104black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #a769ddmediumpurple | #a769ddmediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #d2cbd8lightgrey | #262528darkslategray |
| Secondary foreground | #393040darkslategray | #bfbdc2silver |
| Muted | #dedce0gainsboro | #211f23black |
| Muted foreground | #545257dimgray | #aba8addarkgray |
| Accent | #beafcasilver | #3e3645darkslategray |
| Accent foreground | #241d2bdarkslategray | #d7d1dblightgrey |
| Destructive | #961d08darkred | #f33716orangered |
| Destructive foreground | #fddad3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a769ddmediumpurple | #a769ddmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.31:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 5.72:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Wrinkle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 309.706);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.007 309.71);
--muted-foreground: oklch(0.442 0.009 309.587);
--popover: oklch(0.98 0.008 309.706);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.971 0.012 309.666);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.637 0.175 306.73);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.85 0.019 309.563);
--secondary-foreground: oklch(0.326 0.03 308.886);
--accent: oklch(0.776 0.04 309.272);
--accent-foreground: oklch(0.244 0.029 308.612);
--destructive: oklch(0.439 0.159 32.015);
--destructive-foreground: oklch(0.915 0.04 29.685);
--ring: oklch(0.637 0.175 306.73);
--chart-1: oklch(0.637 0.175 306.73);
--chart-2: oklch(0.85 0.019 309.563);
--chart-3: oklch(0.776 0.04 309.272);
--chart-4: oklch(0.876 0.016 309.606);
--chart-5: oklch(0.635 0.182 306.542);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.018 311.552);
--foreground: oklch(0.991 0.003 309.759);
--muted: oklch(0.243 0.009 309.402);
--muted-foreground: oklch(0.736 0.008 309.68);
--popover: oklch(0.081 0.018 311.552);
--popover-foreground: oklch(0.991 0.003 309.759);
--card: oklch(0.102 0.023 311.552);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.637 0.175 306.73);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.266 0.006 309.559);
--secondary-foreground: oklch(0.801 0.008 309.69);
--accent: oklch(0.346 0.027 309.008);
--accent-foreground: oklch(0.869 0.014 309.62);
--destructive: oklch(0.629 0.226 32.058);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.637 0.175 306.73);
--chart-1: oklch(0.637 0.175 306.73);
--chart-2: oklch(0.266 0.006 309.559);
--chart-3: oklch(0.346 0.027 309.008);
--chart-4: oklch(0.297 0.007 309.548);
--chart-5: oklch(0.635 0.182 306.542);
}