Miserly for shadcn/ui

Miserly is a shadcn/ui theme built around a vivid green primary color (#05ad24) with vivid purple accents (#ad058e). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#05ad24) on a green-tinted background (#040b06).

Color palette

TokenLightDark
Background
#fbfefbwhite
#040b06black
Foreground
#020803black
#fbfdfcwhite
Card
#fbfefbwhite
#040b06black
Card foreground
#020803black
#fbfdfcwhite
Popover
#fbfefbwhite
#040b06black
Popover foreground
#020803black
#fbfdfcwhite
Primary
#05ad24forestgreen
#05ad24forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ad058emediumvioletred
#ad058emediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1e9f0whitesmoke
#160e14black
Muted foreground
#473845darkslategray
#c7b8c4silver
Accent
#ad058emediumvioletred
#ad058emediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c13b01firebrick
#fe6d2ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05ad24forestgreen
#05ad24forestgreen

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button2.99:1Fail
Secondary button6.57:1AA
Muted text9.20:1AAA
Accent6.57:1AA
Destructive5.41:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button2.99:1Fail
Secondary button6.57:1AA
Muted text10.01:1AAA
Accent6.57:1AA
Destructive7.44:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 151.331);
  --foreground: oklch(0.124 0.024 150.316);
  --muted: oklch(0.943 0.012 331.586);
  --muted-foreground: oklch(0.362 0.03 332.519);
  --popover: oklch(0.994 0.005 151.331);
  --popover-foreground: oklch(0.124 0.024 150.316);
  --card: oklch(0.994 0.005 151.331);
  --card-foreground: oklch(0.124 0.024 150.316);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.65 0.21 143.95);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.508 0.22 338.677);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.22 338.677);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.544 0.179 37.616);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.65 0.21 143.95);
  --chart-1: oklch(0.65 0.21 143.95);
  --chart-2: oklch(0.508 0.22 338.677);
  --chart-3: oklch(0.508 0.22 338.677);
  --chart-4: oklch(0.54 0.234 338.739);
  --chart-5: oklch(0.657 0.213 143.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.018 150.667);
  --foreground: oklch(0.993 0.003 151.364);
  --muted: oklch(0.177 0.018 332.792);
  --muted-foreground: oklch(0.798 0.024 331.833);
  --popover: oklch(0.139 0.018 150.667);
  --popover-foreground: oklch(0.993 0.003 151.364);
  --card: oklch(0.139 0.018 150.667);
  --card-foreground: oklch(0.993 0.003 151.364);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.65 0.21 143.95);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.508 0.22 338.677);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.22 338.677);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.705 0.191 41.234);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.65 0.21 143.95);
  --chart-1: oklch(0.65 0.21 143.95);
  --chart-2: oklch(0.508 0.22 338.677);
  --chart-3: oklch(0.508 0.22 338.677);
  --chart-4: oklch(0.54 0.234 338.739);
  --chart-5: oklch(0.657 0.213 143.835);
}