Miserly for shadcn/ui

Miserly is a shadcn/ui theme built around a blue primary color (#456b96) with orange accents (#967045). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#456b96) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcfewhite
#000000black
Foreground
#02070dblack
#f9fafbghostwhite
Card
#fbfcfewhite
#000000black
Card foreground
#02070dblack
#f9fafbghostwhite
Popover
#fbfcfewhite
#000000black
Popover foreground
#02070dblack
#f9fafbghostwhite
Primary
#456b96steelblue
#456b96steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#967045sienna
#967045sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2ede9linen
#16120dblack
Muted foreground
#464544darkslategray
#bbbab9silver
Accent
#967045sienna
#967045sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d21504firebrick
#e61705red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#456b96steelblue
#456b96steelblue

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button5.53:1AA
Secondary button4.44:1AA Large
Muted text8.24:1AAA
Accent4.44:1AA Large
Destructive5.45:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button5.53:1AA
Secondary button4.44:1AA Large
Muted text9.60:1AAA
Accent4.44:1AA Large
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 251.473);
  --foreground: oklch(0.125 0.02 241.541);
  --muted: oklch(0.949 0.008 71.379);
  --muted-foreground: oklch(0.39 0.002 71.417);
  --popover: oklch(0.991 0.003 251.473);
  --popover-foreground: oklch(0.125 0.02 241.541);
  --card: oklch(0.991 0.003 251.473);
  --card-foreground: oklch(0.125 0.02 241.541);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.518 0.081 252.636);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.076 69.037);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.076 69.037);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.548 0.217 30.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.518 0.081 252.636);
  --chart-1: oklch(0.518 0.081 252.636);
  --chart-2: oklch(0.574 0.076 69.037);
  --chart-3: oklch(0.574 0.076 69.037);
  --chart-4: oklch(0.603 0.081 69.007);
  --chart-5: oklch(0.518 0.088 252.768);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 251.47);
  --muted: oklch(0.186 0.012 70.751);
  --muted-foreground: oklch(0.79 0.001 71.437);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 251.47);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 251.47);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.518 0.081 252.636);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.574 0.076 69.037);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.076 69.037);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.587 0.233 30.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.518 0.081 252.636);
  --chart-1: oklch(0.518 0.081 252.636);
  --chart-2: oklch(0.574 0.076 69.037);
  --chart-3: oklch(0.574 0.076 69.037);
  --chart-4: oklch(0.603 0.081 69.007);
  --chart-5: oklch(0.518 0.088 252.768);
}