Wavy is a shadcn/ui theme built around a vivid violet primary color (#6e0bf9) with muted light violet accents (#c0b4cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#6e0bf9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #07020dblack | #f7f6f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040109black | #faf9fbghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #040109black | #faf9fbghostwhite |
| Primary | #6e0bf9blueviolet | #6e0bf9blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d3cddalightgrey | #2e2c30darkslategray |
| Secondary foreground | #393243darkslategray | #c6c4casilver |
| Muted | #e8e6eblavender | #171419black |
| Muted foreground | #514c57darkslategray | #aca8b3darkgray |
| Accent | #c0b4cfsilver | #3e3748darkslategray |
| Accent foreground | #272032darkslategray | #d8d4degainsboro |
| Destructive | #701701maroon | #fe5025orangered |
| Destructive foreground | #ffb6a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e0bf9blueviolet | #6e0bf9blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.28:1 | AA Large |
Paste this into your globals.css to use Wavy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.11 0.033 306.155);
--muted: oklch(0.927 0.007 304.939);
--muted-foreground: oklch(0.425 0.02 304.409);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.096 0.029 306.656);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.096 0.029 306.656);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.508 0.285 288.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.857 0.019 304.743);
--secondary-foreground: oklch(0.332 0.032 303.703);
--accent: oklch(0.789 0.04 304.353);
--accent-foreground: oklch(0.26 0.035 303.173);
--destructive: oklch(0.357 0.126 34.463);
--destructive-foreground: oklch(0.839 0.089 34.555);
--ring: oklch(0.508 0.285 288.859);
--chart-1: oklch(0.508 0.285 288.859);
--chart-2: oklch(0.857 0.019 304.743);
--chart-3: oklch(0.789 0.04 304.353);
--chart-4: oklch(0.883 0.015 304.806);
--chart-5: oklch(0.51 0.289 288.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 304.975);
--muted: oklch(0.198 0.01 304.314);
--muted-foreground: oklch(0.738 0.017 304.726);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.003 304.999);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.003 304.999);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.508 0.285 288.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.295 0.009 304.642);
--secondary-foreground: oklch(0.824 0.008 304.908);
--accent: oklch(0.352 0.03 303.875);
--accent-foreground: oklch(0.875 0.014 304.82);
--destructive: oklch(0.67 0.217 34.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.508 0.285 288.859);
--chart-1: oklch(0.508 0.285 288.859);
--chart-2: oklch(0.295 0.009 304.642);
--chart-3: oklch(0.352 0.03 303.875);
--chart-4: oklch(0.325 0.01 304.628);
--chart-5: oklch(0.51 0.289 288.136);
}