Quick-witted is a shadcn/ui theme built around an indigo primary color (#6a51d6) with muted indigo accents (#aca6c9). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the indigo primary (#6a51d6) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030208black |
| Foreground | #030208black | #faf9fasnow |
| Card | #f4f3fcghostwhite | #05030cblack |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #030208black | #faf9fasnow |
| Primary | #6a51d6slateblue | #6a51d6slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c9c6d7thistle | #1d1b28black |
| Secondary foreground | #302c3fdarkslategray | #b1acc8silver |
| Muted | #ebeaf0lavender | #100f15black |
| Muted foreground | #555260dimgray | #a19faddarkgray |
| Accent | #aca6c9darkgray | #2c2744darkslategray |
| Accent foreground | #1a1726black | #c6c1dcthistle |
| Destructive | #752706saddlebrown | #f4510borangered |
| Destructive foreground | #fbc7b1peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a51d6slateblue | #6a51d6slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.49: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.978 0.008 294.668);
--foreground: oklch(0.096 0.022 293.459);
--muted: oklch(0.94 0.008 294.662);
--muted-foreground: oklch(0.447 0.023 293.843);
--popover: oklch(0.978 0.008 294.668);
--popover-foreground: oklch(0.096 0.022 293.459);
--card: oklch(0.967 0.012 294.587);
--card-foreground: oklch(0.076 0.018 293.459);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.536 0.195 286.251);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.835 0.023 294.311);
--secondary-foreground: oklch(0.306 0.033 292.773);
--accent: oklch(0.742 0.051 293.514);
--accent-foreground: oklch(0.215 0.03 292.105);
--destructive: oklch(0.386 0.117 39.737);
--destructive-foreground: oklch(0.871 0.067 44.364);
--ring: oklch(0.536 0.195 286.251);
--chart-1: oklch(0.536 0.195 286.251);
--chart-2: oklch(0.835 0.023 294.311);
--chart-3: oklch(0.742 0.051 293.514);
--chart-4: oklch(0.861 0.019 294.409);
--chart-5: oklch(0.532 0.203 285.636);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.023 293.423);
--foreground: oklch(0.984 0.001 294.795);
--muted: oklch(0.172 0.013 293.436);
--muted-foreground: oklch(0.708 0.021 294.277);
--popover: oklch(0.096 0.023 293.423);
--popover-foreground: oklch(0.984 0.001 294.795);
--card: oklch(0.11 0.026 293.234);
--card-foreground: oklch(0.992 0.001 294.81);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.536 0.195 286.251);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.229 0.026 292.671);
--secondary-foreground: oklch(0.759 0.039 293.848);
--accent: oklch(0.293 0.052 291.261);
--accent-foreground: oklch(0.824 0.037 293.991);
--destructive: oklch(0.653 0.209 38.2);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.536 0.195 286.251);
--chart-1: oklch(0.536 0.195 286.251);
--chart-2: oklch(0.229 0.026 292.671);
--chart-3: oklch(0.293 0.052 291.261);
--chart-4: oklch(0.257 0.031 292.522);
--chart-5: oklch(0.532 0.203 285.636);
}