Quaint is a shadcn/ui theme built around a neutral gray primary color (#ced4d3) with neutral gray accents (#d4cecf). The light mode uses a neutral background (#fbfefd). Dark mode keeps the neutral gray primary (#ced4d3) on a teal-tinted background (#040b0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #040b0ablack |
| Foreground | #010907black | #ffffffwhite |
| Card | #fbfefdwhite | #040b0ablack |
| Card foreground | #010907black | #ffffffwhite |
| Popover | #fbfefdwhite | #040b0ablack |
| Popover foreground | #010907black | #ffffffwhite |
| Primary | #ced4d3lightgrey | #ced4d3lightgrey |
| Primary foreground | #343c3adarkslategray | #343c3adarkslategray |
| Secondary | #d4cecflightgrey | #d4cecflightgrey |
| Secondary foreground | #3c3436darkslategray | #3c3436darkslategray |
| Muted | #e9ced4gainsboro | #31161cblack |
| Muted foreground | #605255dimgray | #ad9fa2darkgray |
| Accent | #d4cecflightgrey | #d4cecflightgrey |
| Accent foreground | #3c3436darkslategray | #3c3436darkslategray |
| Destructive | #cc3000firebrick | #ff4b14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ced4d3lightgrey | #ced4d3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 5.27:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 6.52:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 3.34:1 | AA Large |
Paste this into your globals.css to use Quaint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 181.963);
--foreground: oklch(0.127 0.017 181.972);
--muted: oklch(0.875 0.03 3.008);
--muted-foreground: oklch(0.454 0.019 3.223);
--popover: oklch(0.995 0.004 181.963);
--popover-foreground: oklch(0.127 0.017 181.972);
--card: oklch(0.995 0.004 181.963);
--card-foreground: oklch(0.127 0.017 181.972);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.866 0.007 181.834);
--primary-foreground: oklch(0.348 0.011 181.172);
--secondary: oklch(0.857 0.007 2.302);
--secondary-foreground: oklch(0.335 0.012 2.998);
--accent: oklch(0.857 0.007 2.302);
--accent-foreground: oklch(0.335 0.012 2.998);
--destructive: oklch(0.553 0.198 34.199);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.866 0.007 181.834);
--chart-1: oklch(0.866 0.007 181.834);
--chart-2: oklch(0.857 0.007 2.302);
--chart-3: oklch(0.857 0.007 2.302);
--chart-4: oklch(0.881 0.006 2.256);
--chart-5: oklch(0.868 0.01 181.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.014 181.65);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.043 6.957);
--muted-foreground: oklch(0.714 0.017 2.723);
--popover: oklch(0.142 0.014 181.65);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.014 181.65);
--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.866 0.007 181.834);
--primary-foreground: oklch(0.348 0.011 181.172);
--secondary: oklch(0.857 0.007 2.302);
--secondary-foreground: oklch(0.335 0.012 2.998);
--accent: oklch(0.857 0.007 2.302);
--accent-foreground: oklch(0.335 0.012 2.998);
--destructive: oklch(0.666 0.224 35.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.866 0.007 181.834);
--chart-1: oklch(0.866 0.007 181.834);
--chart-2: oklch(0.857 0.007 2.302);
--chart-3: oklch(0.857 0.007 2.302);
--chart-4: oklch(0.881 0.006 2.256);
--chart-5: oklch(0.868 0.01 181.734);
}