Wicked is a shadcn/ui theme built around a muted yellow primary color (#63563b) with muted green accents (#5c633b). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#63563b) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070603black |
| Foreground | #090701black | #ffffffwhite |
| Card | #fdfbf7snow | #0b0905black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fefdfbsnow | #070603black |
| Popover foreground | #090701black | #ffffffwhite |
| Primary | #63563bdarkolivegreen | #63563bdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #63433bdarkolivegreen | #63433bdarkolivegreen |
| Secondary foreground | #eee4e2mistyrose | #eee4e2mistyrose |
| Muted | #f5ecealinen | #150c0ablack |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #5c633bdarkolivegreen | #5c633bdarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #860804darkred | #f8231borangered |
| Destructive foreground | #fdc1bflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #63563bdarkolivegreen | #63563bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 6.37:1 | AA |
| Destructive | 6.62:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.60:1 | AAA |
| Accent | 6.37:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Wicked in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 86.019);
--foreground: oklch(0.126 0.02 93.556);
--muted: oklch(0.95 0.01 32.663);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.994 0.003 86.019);
--popover-foreground: oklch(0.126 0.02 93.556);
--card: oklch(0.989 0.006 86.03);
--card-foreground: oklch(0.1 0.016 93.556);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.044 85.824);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.415 0.047 33.12);
--secondary-foreground: oklch(0.927 0.011 32.664);
--accent: oklch(0.482 0.059 117.162);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.393 0.155 29.371);
--destructive-foreground: oklch(0.864 0.07 20.871);
--ring: oklch(0.459 0.044 85.824);
--chart-1: oklch(0.459 0.044 85.824);
--chart-2: oklch(0.415 0.047 33.12);
--chart-3: oklch(0.482 0.059 117.162);
--chart-4: oklch(0.442 0.051 33.132);
--chart-5: oklch(0.463 0.049 85.706);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.01 90.176);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.015 32.972);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.121 0.01 90.176);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.011 90.105);
--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.459 0.044 85.824);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.415 0.047 33.12);
--secondary-foreground: oklch(0.927 0.011 32.664);
--accent: oklch(0.482 0.059 117.162);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.242 28.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.459 0.044 85.824);
--chart-1: oklch(0.459 0.044 85.824);
--chart-2: oklch(0.415 0.047 33.12);
--chart-3: oklch(0.482 0.059 117.162);
--chart-4: oklch(0.442 0.051 33.132);
--chart-5: oklch(0.463 0.049 85.706);
}