Quaint is a shadcn/ui theme built around a yellow primary color (#a1a352) with muted light yellow accents (#eaeae6). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the yellow primary (#a1a352) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #040401black |
| Foreground | #000000black | #f9f9f6whitesmoke |
| Card | #fdfdf7snow | #040401black |
| Card foreground | #000000black | #f9f9f6whitesmoke |
| Popover | #fdfdf7snow | #040401black |
| Popover foreground | #000000black | #f9f9f6whitesmoke |
| Primary | #a1a352darkkhaki | #a1a352darkkhaki |
| Primary foreground | #1b1b0eblack | #1b1b0eblack |
| Secondary | #eaeae6linen | #1f1f19black |
| Secondary foreground | #565648darkolivegreen | #bcbcaesilver |
| Muted | #f3f3ecwhitesmoke | #12130cblack |
| Muted foreground | #66665cdimgray | #a3a399darkgray |
| Accent | #eaeae6linen | #1f1f19black |
| Accent foreground | #565648darkolivegreen | #bcbcaesilver |
| Destructive | #701e01maroon | #fe662ftomato |
| Destructive foreground | #ffbca4lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a1a352darkkhaki | #a1a352darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 6.17:1 | AA |
| Muted text | 5.20:1 | AA |
| Accent | 6.17:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.50:1 | AA |
| Secondary button | 8.64:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 8.64:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Quaint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 107.329);
--foreground: oklch(0 0 0);
--muted: oklch(0.962 0.009 107.33);
--muted-foreground: oklch(0.506 0.015 107.699);
--popover: oklch(0.993 0.009 107.329);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.009 107.329);
--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.696 0.104 109.679);
--primary-foreground: oklch(0.218 0.024 109.074);
--secondary: oklch(0.936 0.006 107.277);
--secondary-foreground: oklch(0.449 0.022 108.053);
--accent: oklch(0.936 0.006 107.277);
--accent-foreground: oklch(0.449 0.022 108.053);
--destructive: oklch(0.365 0.12 37.59);
--destructive-foreground: oklch(0.85 0.084 40.85);
--ring: oklch(0.696 0.104 109.679);
--chart-1: oklch(0.696 0.104 109.679);
--chart-2: oklch(0.936 0.006 107.277);
--chart-3: oklch(0.936 0.006 107.277);
--chart-4: oklch(0.958 0.004 107.239);
--chart-5: oklch(0.707 0.112 109.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.012 108.921);
--foreground: oklch(0.981 0.004 107.237);
--muted: oklch(0.182 0.013 108.376);
--muted-foreground: oklch(0.712 0.014 107.519);
--popover: oklch(0.102 0.012 108.921);
--popover-foreground: oklch(0.981 0.004 107.237);
--card: oklch(0.102 0.012 108.921);
--card-foreground: oklch(0.981 0.004 107.237);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.696 0.104 109.679);
--primary-foreground: oklch(0.218 0.024 109.074);
--secondary: oklch(0.237 0.01 107.951);
--secondary-foreground: oklch(0.792 0.02 107.633);
--accent: oklch(0.237 0.01 107.951);
--accent-foreground: oklch(0.792 0.02 107.633);
--destructive: oklch(0.696 0.197 38.899);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.696 0.104 109.679);
--chart-1: oklch(0.696 0.104 109.679);
--chart-2: oklch(0.237 0.01 107.951);
--chart-3: oklch(0.237 0.01 107.951);
--chart-4: oklch(0.271 0.013 108.005);
--chart-5: oklch(0.707 0.112 109.81);
}