Quizzical is a shadcn/ui theme built around a blue primary color (#6c8ccb) with indigo accents (#7c6ccb). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#6c8ccb) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #010204black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f8f9fcghostwhite | #020408black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfdwhite | #010204black |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #6c8ccbcornflowerblue | #6c8ccbcornflowerblue |
| Primary foreground | #010204black | #010204black |
| Secondary | #6cbbcbmediumaquamarine | #6cbbcbmediumaquamarine |
| Secondary foreground | #010304black | #010304black |
| Muted | #edf1f2whitesmoke | #0d1112black |
| Muted foreground | #5d6c6fdimgray | #909fa2darkgray |
| Accent | #7c6ccbslateblue | #7c6ccbslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #970502darkred | #fb120ered |
| Destructive foreground | #fececdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c8ccbcornflowerblue | #6c8ccbcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 9.48:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 4.32:1 | AA Large |
| Destructive | 6.39:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 9.48:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 4.32:1 | AA Large |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Quizzical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 264.546);
--foreground: oklch(0.082 0.015 252.917);
--muted: oklch(0.956 0.005 211.04);
--muted-foreground: oklch(0.52 0.019 211.081);
--popover: oklch(0.991 0.002 264.546);
--popover-foreground: oklch(0.082 0.015 252.917);
--card: oklch(0.983 0.003 264.541);
--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.641 0.103 263.457);
--primary-foreground: oklch(0.086 0.009 257.893);
--secondary: oklch(0.748 0.081 211.95);
--secondary-foreground: oklch(0.096 0.009 207.904);
--accent: oklch(0.589 0.142 288.924);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.426 0.172 29.295);
--destructive-foreground: oklch(0.892 0.055 19.377);
--ring: oklch(0.641 0.103 263.457);
--chart-1: oklch(0.641 0.103 263.457);
--chart-2: oklch(0.748 0.081 211.95);
--chart-3: oklch(0.589 0.142 288.924);
--chart-4: oklch(0.767 0.076 211.737);
--chart-5: oklch(0.639 0.109 263.364);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 257.077);
--foreground: oklch(0.992 0.001 264.547);
--muted: oklch(0.173 0.007 211.088);
--muted-foreground: oklch(0.692 0.018 211.052);
--popover: oklch(0.085 0.01 257.077);
--popover-foreground: oklch(0.992 0.001 264.547);
--card: oklch(0.107 0.013 257.077);
--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.641 0.103 263.457);
--primary-foreground: oklch(0.086 0.009 257.893);
--secondary: oklch(0.748 0.081 211.95);
--secondary-foreground: oklch(0.096 0.009 207.904);
--accent: oklch(0.589 0.142 288.924);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.251 29.044);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.641 0.103 263.457);
--chart-1: oklch(0.641 0.103 263.457);
--chart-2: oklch(0.748 0.081 211.95);
--chart-3: oklch(0.589 0.142 288.924);
--chart-4: oklch(0.767 0.076 211.737);
--chart-5: oklch(0.639 0.109 263.364);
}