Question is a shadcn/ui theme built around a deep violet primary color (#4b2069) with deep green accents (#3f6920). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#4b2069) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060208black |
| Foreground | #060208black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #060208black |
| Card foreground | #060208black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #060208black |
| Popover foreground | #060208black | #faf9fbghostwhite |
| Primary | #4b2069indigo | #4b2069indigo |
| Primary foreground | #e1ccefgainsboro | #e1ccefgainsboro |
| Secondary | #3f6920darkolivegreen | #3f6920darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7efe1beige | #161e10black |
| Muted foreground | #5a6652dimgray | #a2ad99darkgray |
| Accent | #3f6920darkolivegreen | #3f6920darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b93c0efirebrick | #ed4c12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b2069indigo | #4b2069indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 5.14:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 5.66:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Question in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 311.693);
--foreground: oklch(0.101 0.026 313.858);
--muted: oklch(0.942 0.02 131.894);
--muted-foreground: oklch(0.494 0.035 132.319);
--popover: oklch(0.99 0.004 311.693);
--popover-foreground: oklch(0.101 0.026 313.858);
--card: oklch(0.99 0.004 311.693);
--card-foreground: oklch(0.101 0.026 313.858);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.344 0.124 307.96);
--primary-foreground: oklch(0.874 0.052 311.242);
--secondary: oklch(0.474 0.113 134.637);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.113 134.637);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.532 0.169 37.336);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.124 307.96);
--chart-1: oklch(0.344 0.124 307.96);
--chart-2: oklch(0.474 0.113 134.637);
--chart-3: oklch(0.474 0.113 134.637);
--chart-4: oklch(0.511 0.123 134.693);
--chart-5: oklch(0.344 0.13 307.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.024 313.619);
--foreground: oklch(0.983 0.003 311.699);
--muted: oklch(0.221 0.027 132.849);
--muted-foreground: oklch(0.734 0.031 132.081);
--popover: oklch(0.103 0.024 313.619);
--popover-foreground: oklch(0.983 0.003 311.699);
--card: oklch(0.103 0.024 313.619);
--card-foreground: oklch(0.983 0.003 311.699);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.344 0.124 307.96);
--primary-foreground: oklch(0.874 0.052 311.242);
--secondary: oklch(0.474 0.113 134.637);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.474 0.113 134.637);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.638 0.206 37.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.344 0.124 307.96);
--chart-1: oklch(0.344 0.124 307.96);
--chart-2: oklch(0.474 0.113 134.637);
--chart-3: oklch(0.474 0.113 134.637);
--chart-4: oklch(0.511 0.123 134.693);
--chart-5: oklch(0.344 0.13 307.65);
}