Wilted is a shadcn/ui theme built around a vivid light violet primary color (#dfc5fc) with vivid light purple accents (#fac5fc). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#dfc5fc) on a violet-tinted background (#0a0410).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #0a0410black |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfbfewhite | #0a0410black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #0a0410black |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #dfc5fclavender | #dfc5fclavender |
| Primary foreground | #430887indigo | #430887indigo |
| Secondary | #c5c7fclightblue | #c5c7fclightblue |
| Secondary foreground | #080c87darkblue | #080c87darkblue |
| Muted | #dcddeflavender | #101123black |
| Muted foreground | #5c5d60dimgray | #9f9fa3darkgray |
| Accent | #fac5fclavender | #fac5fclavender |
| Accent foreground | #830887purple | #830887purple |
| Destructive | #af1e0efirebrick | #ee432ftomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfc5fclavender | #dfc5fclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 9.16:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 9.16:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Wilted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 307.058);
--foreground: oklch(0.08 0.019 308.715);
--muted: oklch(0.902 0.025 284.313);
--muted-foreground: oklch(0.478 0.006 284.593);
--popover: oklch(0.99 0.004 307.058);
--popover-foreground: oklch(0.08 0.019 308.715);
--card: oklch(0.99 0.004 307.058);
--card-foreground: oklch(0.08 0.019 308.715);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.863 0.079 305.991);
--primary-foreground: oklch(0.338 0.179 294.875);
--secondary: oklch(0.846 0.073 283.166);
--secondary-foreground: oklch(0.294 0.187 266.13);
--accent: oklch(0.887 0.093 325.252);
--accent-foreground: oklch(0.433 0.196 326.627);
--destructive: oklch(0.486 0.181 30.519);
--destructive-foreground: oklch(0.97 0.013 25.101);
--ring: oklch(0.863 0.079 305.991);
--chart-1: oklch(0.863 0.079 305.991);
--chart-2: oklch(0.846 0.073 283.166);
--chart-3: oklch(0.887 0.093 325.252);
--chart-4: oklch(0.885 0.054 283.671);
--chart-5: oklch(0.861 0.082 305.95);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.031 306.804);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.037 280.685);
--muted-foreground: oklch(0.703 0.005 284.676);
--popover: oklch(0.128 0.031 306.804);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.031 306.804);
--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.863 0.079 305.991);
--primary-foreground: oklch(0.338 0.179 294.875);
--secondary: oklch(0.846 0.073 283.166);
--secondary-foreground: oklch(0.294 0.187 266.13);
--accent: oklch(0.887 0.093 325.252);
--accent-foreground: oklch(0.433 0.196 326.627);
--destructive: oklch(0.632 0.211 30.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.863 0.079 305.991);
--chart-1: oklch(0.863 0.079 305.991);
--chart-2: oklch(0.846 0.073 283.166);
--chart-3: oklch(0.887 0.093 325.252);
--chart-4: oklch(0.885 0.054 283.671);
--chart-5: oklch(0.861 0.082 305.95);
}