Quixotic is a shadcn/ui theme built around a vivid yellow primary color (#ead12e) with muted light yellow accents (#e0ded1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#ead12e) on a yellow-tinted background (#0e0d06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0d06black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #121008black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0e0d06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #ead12egoldenrod | #ead12egoldenrod |
| Primary foreground | #463d07darkolivegreen | #463d07darkolivegreen |
| Secondary | #e8e7e3gainsboro | #2b2b2bdarkslategray |
| Secondary foreground | #545245darkolivegreen | #c4c4c4silver |
| Muted | #f7f5eewhitesmoke | #110808black |
| Muted foreground | #484741darkslategray | #beb7b7silver |
| Accent | #e0ded1gainsboro | #3b3535darkslategray |
| Accent foreground | #4c4934darkolivegreen | #d4cecelightgrey |
| Destructive | #b43604firebrick | #fa520forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ead12egoldenrod | #ead12egoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 8.55:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 10.00:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 3.34:1 | AA Large |
Paste this into your globals.css to use Quixotic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.97 0.01 99.492);
--muted-foreground: oklch(0.398 0.01 99.694);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.857 0.167 99.795);
--primary-foreground: oklch(0.359 0.07 99.882);
--secondary: oklch(0.928 0.006 99.435);
--secondary-foreground: oklch(0.437 0.021 100);
--accent: oklch(0.899 0.017 99.614);
--accent-foreground: oklch(0.401 0.033 100.376);
--destructive: oklch(0.516 0.17 37.16);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.167 99.795);
--chart-1: oklch(0.857 0.167 99.795);
--chart-2: oklch(0.928 0.006 99.435);
--chart-3: oklch(0.899 0.017 99.614);
--chart-4: oklch(0.95 0.004 99.405);
--chart-5: oklch(0.865 0.171 99.671);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.015 101.003);
--foreground: oklch(1 0 180);
--muted: oklch(0.149 0.016 19.095);
--muted-foreground: oklch(0.784 0.008 17.323);
--popover: oklch(0.158 0.015 101.003);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.173 0.017 100.644);
--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.857 0.167 99.795);
--primary-foreground: oklch(0.359 0.07 99.882);
--secondary: oklch(0.29 0 180);
--secondary-foreground: oklch(0.821 0 171.87);
--accent: oklch(0.335 0.01 17.64);
--accent-foreground: oklch(0.857 0.006 17.276);
--destructive: oklch(0.665 0.214 37.549);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.167 99.795);
--chart-1: oklch(0.857 0.167 99.795);
--chart-2: oklch(0.29 0 180);
--chart-3: oklch(0.335 0.01 17.64);
--chart-4: oklch(0.321 0 180);
--chart-5: oklch(0.865 0.171 99.671);
}