Miserly for shadcn/ui

Miserly is a shadcn/ui theme built around a muted blue primary color (#6d7fa2) with muted indigo accents (#756da2). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted blue primary (#6d7fa2) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#020203black
Foreground
#020408black
#ffffffwhite
Card
#f8f9fcghostwhite
#020203black
Card foreground
#020408black
#ffffffwhite
Popover
#f8f9fcghostwhite
#020203black
Popover foreground
#020408black
#ffffffwhite
Primary
#6d7fa2lightslategray
#6d7fa2lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6d9aa2cadetblue
#6d9aa2cadetblue
Secondary foreground
#000000black
#000000black
Muted
#dae9eclavender
#132325black
Muted foreground
#536a6edimgray
#91a8acdarkgray
Accent
#756da2slategray
#756da2slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a61e0cfirebrick
#ee341borangered
Destructive foreground
#fdeae7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d7fa2lightslategray
#6d7fa2lightslategray

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button4.02:1AA Large
Secondary button6.76:1AA
Muted text4.62:1AA
Accent4.72:1AA
Destructive6.42:1AA
Dark mode
Text on background20.71:1AAA
Text on card20.71:1AAA
Primary button4.02:1AA Large
Secondary button6.76:1AA
Muted text6.51:1AA
Accent4.72:1AA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 263.048);
  --foreground: oklch(0.106 0.015 253.975);
  --muted: oklch(0.924 0.017 209.432);
  --muted-foreground: oklch(0.509 0.028 209.496);
  --popover: oklch(0.983 0.004 263.048);
  --popover-foreground: oklch(0.106 0.015 253.975);
  --card: oklch(0.983 0.004 263.048);
  --card-foreground: oklch(0.106 0.015 253.975);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.057 262.636);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.655 0.05 209.64);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.562 0.081 290.426);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.47 0.173 31);
  --destructive-foreground: oklch(0.951 0.021 26.604);
  --ring: oklch(0.596 0.057 262.636);
  --chart-1: oklch(0.596 0.057 262.636);
  --chart-2: oklch(0.655 0.05 209.64);
  --chart-3: oklch(0.562 0.081 290.426);
  --chart-4: oklch(0.678 0.047 209.579);
  --chart-5: oklch(0.592 0.065 262.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.006 258.613);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.022 209.81);
  --muted-foreground: oklch(0.714 0.026 209.438);
  --popover: oklch(0.088 0.006 258.613);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.088 0.006 258.613);
  --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.596 0.057 262.636);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.655 0.05 209.64);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.562 0.081 290.426);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.618 0.224 31.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.057 262.636);
  --chart-1: oklch(0.596 0.057 262.636);
  --chart-2: oklch(0.655 0.05 209.64);
  --chart-3: oklch(0.562 0.081 290.426);
  --chart-4: oklch(0.678 0.047 209.579);
  --chart-5: oklch(0.592 0.065 262.547);
}