Wriggler is a shadcn/ui theme built around a muted deep purple primary color (#271724) with muted deep cyan accents (#172427). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#271724) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #040103black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fdf7fcsnow | #040103black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdf7fcsnow | #040103black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #271724black | #271724black |
| Primary foreground | #caa5c5silver | #caa5c5silver |
| Secondary | #242717black | #242717black |
| Secondary foreground | #c5caa5silver | #c5caa5silver |
| Muted | #f0f3e3beige | #1a1c0cblack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #172427black | #172427black |
| Accent foreground | #a5c5calightsteelblue | #a5c5calightsteelblue |
| Destructive | #9d1a0bfirebrick | #ea2610orangered |
| Destructive foreground | #fde1demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #271724black | #271724black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 9.01:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 9.01:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Wriggler in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.009 330.36);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.021 113.718);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.982 0.009 330.36);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.009 330.36);
--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.23 0.035 332.072);
--primary-foreground: oklch(0.765 0.061 331.232);
--secondary: oklch(0.263 0.028 115.303);
--secondary-foreground: oklch(0.825 0.05 114.443);
--accent: oklch(0.25 0.019 209.645);
--accent-foreground: oklch(0.801 0.035 209.452);
--destructive: oklch(0.45 0.168 30.517);
--destructive-foreground: oklch(0.931 0.031 25.297);
--ring: oklch(0.23 0.035 332.072);
--chart-1: oklch(0.23 0.035 332.072);
--chart-2: oklch(0.263 0.028 115.303);
--chart-3: oklch(0.25 0.019 209.645);
--chart-4: oklch(0.301 0.034 115.415);
--chart-5: oklch(0.23 0.039 332.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.016 331.199);
--foreground: oklch(0.992 0.001 330.264);
--muted: oklch(0.22 0.029 115.782);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.086 0.016 331.199);
--popover-foreground: oklch(0.992 0.001 330.264);
--card: oklch(0.086 0.016 331.199);
--card-foreground: oklch(0.992 0.001 330.264);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.23 0.035 332.072);
--primary-foreground: oklch(0.765 0.061 331.232);
--secondary: oklch(0.263 0.028 115.303);
--secondary-foreground: oklch(0.825 0.05 114.443);
--accent: oklch(0.25 0.019 209.645);
--accent-foreground: oklch(0.801 0.035 209.452);
--destructive: oklch(0.601 0.229 30.478);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.035 332.072);
--chart-1: oklch(0.23 0.035 332.072);
--chart-2: oklch(0.263 0.028 115.303);
--chart-3: oklch(0.25 0.019 209.645);
--chart-4: oklch(0.301 0.034 115.415);
--chart-5: oklch(0.23 0.039 332.269);
}