Quarrelsome for shadcn/ui

Quarrelsome is a shadcn/ui theme built around a near-black primary color (#030407) with near-black accents (#040307). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030407) on a blue-tinted background (#05060a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05060ablack
Foreground
#010204black
#f6f7f9whitesmoke
Card
#ffffffwhite
#05060ablack
Card foreground
#010204black
#f6f7f9whitesmoke
Popover
#ffffffwhite
#05060ablack
Popover foreground
#010204black
#f6f7f9whitesmoke
Primary
#030407black
#030407black
Primary foreground
#738ac9cornflowerblue
#738ac9cornflowerblue
Secondary
#030607black
#030607black
Secondary foreground
#73b5c9mediumaquamarine
#73b5c9mediumaquamarine
Muted
#ebf2f5whitesmoke
#0a1214black
Muted foreground
#455559darkslategray
#a6b5badarkgray
Accent
#040307black
#040307black
Accent foreground
#c6bde5thistle
#c6bde5thistle
Destructive
#a8350bfirebrick
#f1561echocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030407black
#030407black

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.05:1AA
Secondary button8.87:1AAA
Muted text6.88:1AA
Accent11.57:1AAA
Destructive6.63:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button6.05:1AA
Secondary button8.87:1AAA
Muted text8.95:1AAA
Accent11.57:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.016 258.717);
  --muted: oklch(0.957 0.009 217.796);
  --muted-foreground: oklch(0.436 0.021 218.173);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.016 258.717);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.079 0.016 258.717);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.107 0.012 264.503);
  --primary-foreground: oklch(0.642 0.098 268.311);
  --secondary: oklch(0.119 0.01 214.028);
  --secondary-foreground: oklch(0.736 0.072 219.166);
  --accent: oklch(0.102 0.016 296.682);
  --accent-foreground: oklch(0.819 0.057 295.81);
  --destructive: oklch(0.494 0.158 37.239);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.107 0.012 264.503);
  --chart-1: oklch(0.107 0.012 264.503);
  --chart-2: oklch(0.119 0.01 214.028);
  --chart-3: oklch(0.102 0.016 296.682);
  --chart-4: oklch(0.164 0.014 218.239);
  --chart-5: oklch(0.107 0.012 264.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.011 265.552);
  --foreground: oklch(0.975 0.003 270.096);
  --muted: oklch(0.175 0.012 218.519);
  --muted-foreground: oklch(0.764 0.019 217.914);
  --popover: oklch(0.124 0.011 265.552);
  --popover-foreground: oklch(0.975 0.003 270.096);
  --card: oklch(0.124 0.011 265.552);
  --card-foreground: oklch(0.975 0.003 270.096);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.107 0.012 264.503);
  --primary-foreground: oklch(0.642 0.098 268.311);
  --secondary: oklch(0.119 0.01 214.028);
  --secondary-foreground: oklch(0.736 0.072 219.166);
  --accent: oklch(0.102 0.016 296.682);
  --accent-foreground: oklch(0.819 0.057 295.81);
  --destructive: oklch(0.655 0.2 37.975);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.107 0.012 264.503);
  --chart-1: oklch(0.107 0.012 264.503);
  --chart-2: oklch(0.119 0.01 214.028);
  --chart-3: oklch(0.102 0.016 296.682);
  --chart-4: oklch(0.164 0.014 218.239);
  --chart-5: oklch(0.107 0.012 264.038);
}