Quaint for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button7.55:1AAA
Secondary button7.79:1AAA
Muted text5.02:1AA
Accent7.79:1AAA
Destructive5.27:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.55:1AAA
Secondary button7.79:1AAA
Muted text6.52:1AA
Accent7.79:1AAA
Destructive3.34:1AA Large

CSS variables

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);
}