Quaint for shadcn/ui

Quaint is a shadcn/ui theme built around an orange primary color (#d9bea5) with blue accents (#a5c0d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#d9bea5) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#000000black
#f9f7f6whitesmoke
Card
#ffffffwhite
#070503black
Card foreground
#000000black
#f9f7f6whitesmoke
Popover
#ffffffwhite
#070503black
Popover foreground
#000000black
#f9f7f6whitesmoke
Primary
#d9bea5tan
#d9bea5tan
Primary foreground
#362617darkslategray
#362617darkslategray
Secondary
#a5c0d9lightsteelblue
#a5c0d9lightsteelblue
Secondary foreground
#172736darkslategray
#172736darkslategray
Muted
#e3e8edlavender
#12171cblack
Muted foreground
#58616adimgray
#959ea7darkgray
Accent
#a5c0d9lightsteelblue
#a5c0d9lightsteelblue
Accent foreground
#172736darkslategray
#172736darkslategray
Destructive
#b53b03firebrick
#fb5204orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9bea5tan
#d9bea5tan

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.23:1AAA
Secondary button8.08:1AAA
Muted text5.11:1AA
Accent8.08:1AAA
Destructive5.84:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button8.23:1AAA
Secondary button8.08:1AAA
Muted text6.62:1AA
Accent8.08:1AAA
Destructive3.32:1AA Large

CSS variables

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.929 0.009 246.074);
  --muted-foreground: oklch(0.488 0.018 246.375);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.819 0.046 65.214);
  --primary-foreground: oklch(0.283 0.035 63.7);
  --secondary: oklch(0.796 0.046 246.633);
  --secondary-foreground: oklch(0.265 0.036 247.717);
  --accent: oklch(0.796 0.046 246.633);
  --accent-foreground: oklch(0.265 0.036 247.717);
  --destructive: oklch(0.524 0.167 38.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.046 65.214);
  --chart-1: oklch(0.819 0.046 65.214);
  --chart-2: oklch(0.796 0.046 246.633);
  --chart-3: oklch(0.796 0.046 246.633);
  --chart-4: oklch(0.821 0.041 246.529);
  --chart-5: oklch(0.82 0.05 65.15);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.007 70.528);
  --foreground: oklch(0.978 0.002 65.937);
  --muted: oklch(0.202 0.013 246.683);
  --muted-foreground: oklch(0.696 0.016 246.231);
  --popover: oklch(0.117 0.007 70.528);
  --popover-foreground: oklch(0.978 0.002 65.937);
  --card: oklch(0.117 0.007 70.528);
  --card-foreground: oklch(0.978 0.002 65.937);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.819 0.046 65.214);
  --primary-foreground: oklch(0.283 0.035 63.7);
  --secondary: oklch(0.796 0.046 246.633);
  --secondary-foreground: oklch(0.265 0.036 247.717);
  --accent: oklch(0.796 0.046 246.633);
  --accent-foreground: oklch(0.265 0.036 247.717);
  --destructive: oklch(0.667 0.216 38.241);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.819 0.046 65.214);
  --chart-1: oklch(0.819 0.046 65.214);
  --chart-2: oklch(0.796 0.046 246.633);
  --chart-3: oklch(0.796 0.046 246.633);
  --chart-4: oklch(0.821 0.041 246.529);
  --chart-5: oklch(0.82 0.05 65.15);
}