Quick-witted is a shadcn/ui theme built around a vivid deep purple primary color (#5f0c5c) with vivid deep green accents (#0c5f0f). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#5f0c5c) on a purple-tinted background (#0e060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0e060eblack |
| Foreground | #000000black | #fbf9fbsnow |
| Card | #fcf7fcsnow | #110811black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcf7fcsnow | #110811black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #5f0c5cindigo | #5f0c5cindigo |
| Primary foreground | #f4a9f1plum | #f4a9f1plum |
| Secondary | #0c5f0fdarkgreen | #0c5f0fdarkgreen |
| Secondary foreground | #a9f4acpalegreen | #a9f4acpalegreen |
| Muted | #d4e2d5gainsboro | #1d2b1dblack |
| Muted foreground | #515251darkslategray | #adaeaddarkgray |
| Accent | #0c5f0fdarkgreen | #0c5f0fdarkgreen |
| Accent foreground | #a9f4acpalegreen | #a9f4acpalegreen |
| Destructive | #bb1007firebrick | #f83a30tomato |
| Destructive foreground | #fff6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5f0c5cindigo | #5f0c5cindigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 5.86:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 6.96:1 | AA |
| Secondary button | 6.11:1 | AA |
| Muted text | 6.68:1 | AA |
| Accent | 6.11:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Quick-witted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 326.576);
--foreground: oklch(0 0 0);
--muted: oklch(0.9 0.024 146.305);
--muted-foreground: oklch(0.438 0.003 146.475);
--popover: oklch(0.983 0.008 326.612);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.008 326.612);
--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.345 0.145 329.719);
--primary-foreground: oklch(0.83 0.127 327.774);
--secondary: oklch(0.423 0.134 143.048);
--secondary-foreground: oklch(0.9 0.122 145.259);
--accent: oklch(0.423 0.134 143.048);
--accent-foreground: oklch(0.9 0.122 145.259);
--destructive: oklch(0.502 0.199 29.519);
--destructive-foreground: oklch(0.979 0.01 21.016);
--ring: oklch(0.345 0.145 329.719);
--chart-1: oklch(0.345 0.145 329.719);
--chart-2: oklch(0.423 0.134 143.048);
--chart-3: oklch(0.423 0.134 143.048);
--chart-4: oklch(0.464 0.148 143.005);
--chart-5: oklch(0.348 0.148 329.774);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.021 327.694);
--foreground: oklch(0.984 0.004 326.574);
--muted: oklch(0.271 0.032 145.446);
--muted-foreground: oklch(0.75 0.003 146.508);
--popover: oklch(0.153 0.025 327.824);
--popover-foreground: oklch(0.992 0.002 326.557);
--card: oklch(0.153 0.025 327.824);
--card-foreground: oklch(0.992 0.002 326.557);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.145 329.719);
--primary-foreground: oklch(0.83 0.127 327.774);
--secondary: oklch(0.423 0.134 143.048);
--secondary-foreground: oklch(0.9 0.122 145.259);
--accent: oklch(0.423 0.134 143.048);
--accent-foreground: oklch(0.9 0.122 145.259);
--destructive: oklch(0.641 0.226 28.467);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.145 329.719);
--chart-1: oklch(0.345 0.145 329.719);
--chart-2: oklch(0.423 0.134 143.048);
--chart-3: oklch(0.423 0.134 143.048);
--chart-4: oklch(0.464 0.148 143.005);
--chart-5: oklch(0.348 0.148 329.774);
}