Quaint is a shadcn/ui theme built around a green primary color (#7f9d3f) with muted light green accents (#e0e3d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#7f9d3f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7f9d3folivedrab | #7f9d3folivedrab |
| Primary foreground | #090b04black | #090b04black |
| Secondary | #e0e3d9gainsboro | #151613black |
| Secondary foreground | #49503adarkolivegreen | #afb3a8darkgray |
| Muted | #e1e2dfgainsboro | #1f201dblack |
| Muted foreground | #606751dimgray | #a7ae98darkgray |
| Accent | #e0e3d9gainsboro | #151613black |
| Accent foreground | #49503adarkolivegreen | #afb3a8darkgray |
| Destructive | #d42608firebrick | #f74626orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7f9d3folivedrab | #7f9d3folivedrab |
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 | 6.39:1 | AA |
| Secondary button | 6.48:1 | AA |
| Muted text | 4.54:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 5.15:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 7.10:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Quaint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.005 120.86);
--muted-foreground: oklch(0.501 0.035 121.937);
--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.653 0.127 124.612);
--primary-foreground: oklch(0.144 0.017 120.668);
--secondary: oklch(0.911 0.015 121.033);
--secondary-foreground: oklch(0.418 0.036 122.238);
--accent: oklch(0.911 0.015 121.033);
--accent-foreground: oklch(0.418 0.036 122.238);
--destructive: oklch(0.56 0.21 31.645);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.127 124.612);
--chart-1: oklch(0.653 0.127 124.612);
--chart-2: oklch(0.911 0.015 121.033);
--chart-3: oklch(0.911 0.015 121.033);
--chart-4: oklch(0.932 0.011 120.966);
--chart-5: oklch(0.661 0.133 124.853);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.007 121.248);
--muted-foreground: oklch(0.74 0.032 121.483);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.653 0.127 124.612);
--primary-foreground: oklch(0.144 0.017 120.668);
--secondary: oklch(0.197 0.006 121.252);
--secondary-foreground: oklch(0.761 0.016 121.126);
--accent: oklch(0.197 0.006 121.252);
--accent-foreground: oklch(0.761 0.016 121.126);
--destructive: oklch(0.649 0.218 32.343);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.127 124.612);
--chart-1: oklch(0.653 0.127 124.612);
--chart-2: oklch(0.197 0.006 121.252);
--chart-3: oklch(0.197 0.006 121.252);
--chart-4: oklch(0.232 0.008 121.31);
--chart-5: oklch(0.661 0.133 124.853);
}