Quest is a shadcn/ui theme built around a muted violet primary color (#b3aac5) with muted green accents (#bcc5aa). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the muted violet primary (#b3aac5) on a violet-tinted background (#09060f).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #09060fblack |
| Foreground | #0a0316black | #fcfcfdwhite |
| Card | #f6f3fcghostwhite | #0b0712black |
| Card foreground | #080212black | #ffffffwhite |
| Popover | #f6f3fcghostwhite | #0b0712black |
| Popover foreground | #080212black | #ffffffwhite |
| Primary | #b3aac5silver | #b3aac5silver |
| Primary foreground | #1d1924black | #1d1924black |
| Secondary | #bcc5aasilver | #bcc5aasilver |
| Secondary foreground | #212419black | #212419black |
| Muted | #f1f5ebwhitesmoke | #11140ablack |
| Muted foreground | #4d5440darkolivegreen | #b8bfabsilver |
| Accent | #bcc5aasilver | #bcc5aasilver |
| Accent foreground | #212419black | #212419black |
| Destructive | #83220cmaroon | #eb502dtomato |
| Destructive foreground | #fad0c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b3aac5silver | #b3aac5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 8.80:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 9.80:1 | AAA |
| Accent | 8.80:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Quest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 301.367);
--foreground: oklch(0.128 0.046 298.366);
--muted: oklch(0.964 0.013 121.717);
--muted-foreground: oklch(0.433 0.032 122.697);
--popover: oklch(0.969 0.012 301.302);
--popover-foreground: oklch(0.118 0.041 300.213);
--card: oklch(0.969 0.012 301.302);
--card-foreground: oklch(0.118 0.041 300.213);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.754 0.04 300.646);
--primary-foreground: oklch(0.222 0.023 299.804);
--secondary: oklch(0.81 0.038 122.266);
--secondary-foreground: oklch(0.254 0.022 122.914);
--accent: oklch(0.81 0.038 122.266);
--accent-foreground: oklch(0.254 0.022 122.914);
--destructive: oklch(0.406 0.135 33.7);
--destructive-foreground: oklch(0.892 0.049 32.779);
--ring: oklch(0.754 0.04 300.646);
--chart-1: oklch(0.754 0.04 300.646);
--chart-2: oklch(0.81 0.038 122.266);
--chart-3: oklch(0.81 0.038 122.266);
--chart-4: oklch(0.83 0.034 122.161);
--chart-5: oklch(0.75 0.046 300.504);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.022 300.769);
--foreground: oklch(0.992 0.001 301.474);
--muted: oklch(0.185 0.02 123.283);
--muted-foreground: oklch(0.793 0.027 122.054);
--popover: oklch(0.142 0.025 299.269);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.025 299.269);
--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.754 0.04 300.646);
--primary-foreground: oklch(0.222 0.023 299.804);
--secondary: oklch(0.81 0.038 122.266);
--secondary-foreground: oklch(0.254 0.022 122.914);
--accent: oklch(0.81 0.038 122.266);
--accent-foreground: oklch(0.254 0.022 122.914);
--destructive: oklch(0.641 0.198 34.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.754 0.04 300.646);
--chart-1: oklch(0.754 0.04 300.646);
--chart-2: oklch(0.81 0.038 122.266);
--chart-3: oklch(0.81 0.038 122.266);
--chart-4: oklch(0.83 0.034 122.161);
--chart-5: oklch(0.75 0.046 300.504);
}