Miserly for shadcn/ui

Miserly is a shadcn/ui theme built around a vivid purple primary color (#fb7ee0) with vivid cyan accents (#7ee0fb). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#fb7ee0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#12020fblack
#ffffffwhite
Card
#fcf8fbsnow
#030303black
Card foreground
#0e020bblack
#ffffffwhite
Popover
#fefbfdsnow
#000000black
Popover foreground
#12020fblack
#ffffffwhite
Primary
#fb7ee0violet
#fb7ee0violet
Primary foreground
#450237indigo
#450237indigo
Secondary
#e0fb7ekhaki
#e0fb7ekhaki
Secondary foreground
#374502darkgreen
#374502darkgreen
Muted
#e0e6cbgainsboro
#2e3419darkslategray
Muted foreground
#565a49darkolivegreen
#b2b6a5darkgray
Accent
#7ee0fblightskyblue
#7ee0fblightskyblue
Accent foreground
#023745darkslategray
#023745darkslategray
Destructive
#b30f09firebrick
#f43a34crimson
Destructive foreground
#fef1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb7ee0violet
#fb7ee0violet

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.31:1AAA
Primary button6.97:1AA
Secondary button9.07:1AAA
Muted text5.54:1AA
Accent8.53:1AAA
Destructive6.35:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.97:1AA
Secondary button9.07:1AAA
Muted text6.27:1AA
Accent8.53:1AAA
Destructive3.81: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.991 0.003 332.666);
  --foreground: oklch(0.134 0.045 335.604);
  --muted: oklch(0.914 0.036 117.049);
  --muted-foreground: oklch(0.459 0.026 117.364);
  --popover: oklch(0.991 0.003 332.666);
  --popover-foreground: oklch(0.134 0.045 335.604);
  --card: oklch(0.983 0.006 332.716);
  --card-foreground: oklch(0.119 0.04 334.609);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.767 0.189 336.14);
  --primary-foreground: oklch(0.267 0.113 339.472);
  --secondary: oklch(0.943 0.153 119.542);
  --secondary-foreground: oklch(0.365 0.087 122.324);
  --accent: oklch(0.857 0.099 217.824);
  --accent-foreground: oklch(0.312 0.056 222.447);
  --destructive: oklch(0.487 0.193 29.169);
  --destructive-foreground: oklch(0.968 0.014 19.816);
  --ring: oklch(0.767 0.189 336.14);
  --chart-1: oklch(0.767 0.189 336.14);
  --chart-2: oklch(0.943 0.153 119.542);
  --chart-3: oklch(0.857 0.099 217.824);
  --chart-4: oklch(0.949 0.138 119.139);
  --chart-5: oklch(0.767 0.194 336.242);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.31 0.044 119.085);
  --muted-foreground: oklch(0.767 0.023 116.876);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.767 0.189 336.14);
  --primary-foreground: oklch(0.267 0.113 339.472);
  --secondary: oklch(0.943 0.153 119.542);
  --secondary-foreground: oklch(0.365 0.087 122.324);
  --accent: oklch(0.857 0.099 217.824);
  --accent-foreground: oklch(0.312 0.056 222.447);
  --destructive: oklch(0.635 0.223 27.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.767 0.189 336.14);
  --chart-1: oklch(0.767 0.189 336.14);
  --chart-2: oklch(0.943 0.153 119.542);
  --chart-3: oklch(0.857 0.099 217.824);
  --chart-4: oklch(0.949 0.138 119.139);
  --chart-5: oklch(0.767 0.194 336.242);
}