Quick-witted is a shadcn/ui theme built around a vivid deep green primary color (#4f6f0c) with near-white accents (#ebebea). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid deep green primary (#4f6f0c) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #030401black |
| Foreground | #0c1005black | #f8f9f5whitesmoke |
| Card | #fdfdfbsnow | #030401black |
| Card foreground | #0c1005black | #f8f9f5whitesmoke |
| Popover | #fdfdfbsnow | #030401black |
| Popover foreground | #0c1005black | #f8f9f5whitesmoke |
| Primary | #4f6f0cdarkolivegreen | #4f6f0cdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebebealinen | #1f1f1eblack |
| Secondary foreground | #53554edarkslategray | #b8b8b7silver |
| Muted | #e4e7dfgainsboro | #1d2018black |
| Muted foreground | #63685adimgray | #a1a597darkgray |
| Accent | #ebebealinen | #1f1f1eblack |
| Accent foreground | #53554edarkslategray | #b8b8b7silver |
| Destructive | #7c1404maroon | #f94e34tomato |
| Destructive foreground | #fdbeb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f6f0cdarkolivegreen | #4f6f0cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 6.35:1 | AA |
| Muted text | 4.59:1 | AA |
| Accent | 6.35:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 5.82:1 | AA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.31:1 | AAA |
| Destructive | 3.40: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.994 0.003 120.812);
--foreground: oklch(0.163 0.023 122.122);
--muted: oklch(0.924 0.011 120.961);
--muted-foreground: oklch(0.508 0.022 121.472);
--popover: oklch(0.994 0.003 120.812);
--popover-foreground: oklch(0.163 0.023 122.122);
--card: oklch(0.994 0.003 120.812);
--card-foreground: oklch(0.163 0.023 122.122);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.124 127.091);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.94 0.002 120.807);
--secondary-foreground: oklch(0.445 0.011 121.168);
--accent: oklch(0.94 0.002 120.807);
--accent-foreground: oklch(0.445 0.011 121.168);
--destructive: oklch(0.379 0.14 31.716);
--destructive-foreground: oklch(0.857 0.074 28.617);
--ring: oklch(0.498 0.124 127.091);
--chart-1: oklch(0.498 0.124 127.091);
--chart-2: oklch(0.94 0.002 120.807);
--chart-3: oklch(0.94 0.002 120.807);
--chart-4: oklch(0.963 0.001 120.792);
--chart-5: oklch(0.504 0.126 127.303);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.013 120.554);
--foreground: oklch(0.981 0.006 120.865);
--muted: oklch(0.238 0.015 121.823);
--muted-foreground: oklch(0.714 0.02 121.228);
--popover: oklch(0.101 0.013 120.554);
--popover-foreground: oklch(0.981 0.006 120.865);
--card: oklch(0.101 0.013 120.554);
--card-foreground: oklch(0.981 0.006 120.865);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.498 0.124 127.091);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.238 0.001 120.85);
--secondary-foreground: oklch(0.783 0.002 120.811);
--accent: oklch(0.238 0.001 120.85);
--accent-foreground: oklch(0.783 0.002 120.811);
--destructive: oklch(0.661 0.211 31.588);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.124 127.091);
--chart-1: oklch(0.498 0.124 127.091);
--chart-2: oklch(0.238 0.001 120.85);
--chart-3: oklch(0.238 0.001 120.85);
--chart-4: oklch(0.271 0.001 120.855);
--chart-5: oklch(0.504 0.126 127.303);
}