Querulous for shadcn/ui

Querulous is a shadcn/ui theme built around a neutral gray primary color (#363a39) with neutral gray accents (#3a3936). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#363a39) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#010908black
#f8fcfbmintcream
Card
#ffffffwhite
#010403black
Card foreground
#010908black
#f8fcfbmintcream
Popover
#ffffffwhite
#010403black
Popover foreground
#010908black
#f8fcfbmintcream
Primary
#363a39darkslategray
#363a39darkslategray
Primary foreground
#d0d2d2lightgrey
#d0d2d2lightgrey
Secondary
#39363adarkslategray
#39363adarkslategray
Secondary foreground
#d2d0d2lightgrey
#d2d0d2lightgrey
Muted
#e6dfe7gainsboro
#1f1820black
Muted foreground
#564b58dimgray
#b2a7b4darkgray
Accent
#3a3936darkslategray
#3a3936darkslategray
Accent foreground
#d2d2d0lightgrey
#d2d2d0lightgrey
Destructive
#b51212firebrick
#ec4141tomato
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#363a39darkslategray
#363a39darkslategray

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.60:1AAA
Secondary button7.72:1AAA
Muted text6.32:1AA
Accent7.60:1AAA
Destructive6.63:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button7.60:1AAA
Secondary button7.72:1AAA
Muted text7.49:1AAA
Accent7.60:1AAA
Destructive3.89:1AA Large

CSS variables

Paste this into your globals.css to use Querulous in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.018 186.069);
  --muted: oklch(0.912 0.012 321.093);
  --muted-foreground: oklch(0.429 0.026 321.191);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.128 0.018 186.069);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.128 0.018 186.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.344 0.005 186.248);
  --primary-foreground: oklch(0.863 0.003 186.505);
  --secondary: oklch(0.339 0.007 321.11);
  --secondary-foreground: oklch(0.859 0.005 321.077);
  --accent: oklch(0.345 0.005 98.516);
  --accent-foreground: oklch(0.864 0.003 98.37);
  --destructive: oklch(0.492 0.193 28.243);
  --destructive-foreground: oklch(0.989 0.004 17.232);
  --ring: oklch(0.344 0.005 186.248);
  --chart-1: oklch(0.344 0.005 186.248);
  --chart-2: oklch(0.339 0.007 321.11);
  --chart-3: oklch(0.345 0.005 98.516);
  --chart-4: oklch(0.368 0.008 321.111);
  --chart-5: oklch(0.347 0.009 185.91);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 186.228);
  --foreground: oklch(0.987 0.004 186.505);
  --muted: oklch(0.221 0.017 321.224);
  --muted-foreground: oklch(0.741 0.022 321.13);
  --popover: oklch(0.098 0.009 186.228);
  --popover-foreground: oklch(0.987 0.004 186.505);
  --card: oklch(0.098 0.009 186.228);
  --card-foreground: oklch(0.987 0.004 186.505);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.344 0.005 186.248);
  --primary-foreground: oklch(0.863 0.003 186.505);
  --secondary: oklch(0.339 0.007 321.11);
  --secondary-foreground: oklch(0.859 0.005 321.077);
  --accent: oklch(0.345 0.005 98.516);
  --accent-foreground: oklch(0.864 0.003 98.37);
  --destructive: oklch(0.629 0.208 25.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.344 0.005 186.248);
  --chart-1: oklch(0.344 0.005 186.248);
  --chart-2: oklch(0.339 0.007 321.11);
  --chart-3: oklch(0.345 0.005 98.516);
  --chart-4: oklch(0.368 0.008 321.111);
  --chart-5: oklch(0.347 0.009 185.91);
}