Frugal for shadcn/ui

Frugal is a shadcn/ui theme built around a muted light purple primary color (#d7cbd6) with muted light teal accents (#cbd6d7). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#d7cbd6) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050ablack
Foreground
#040104black
#ffffffwhite
Card
#fcf7fcsnow
#0e060eblack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfewhite
#0a050ablack
Popover foreground
#040104black
#ffffffwhite
Primary
#d7cbd6lightgrey
#d7cbd6lightgrey
Primary foreground
#3f313fdarkslategray
#3f313fdarkslategray
Secondary
#d6d7cblightgrey
#d6d7cblightgrey
Secondary foreground
#3f3f31darkslategray
#3f3f31darkslategray
Muted
#e9eae6linen
#181915black
Muted foreground
#4b4b48darkslategray
#b6b7b4silver
Accent
#cbd6d7lightgrey
#cbd6d7lightgrey
Accent foreground
#313f3fdarkslategray
#313f3fdarkslategray
Destructive
#d51310firebrick
#ee2420crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7cbd6lightgrey
#d7cbd6lightgrey

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card19.91:1AAA
Primary button7.79:1AAA
Secondary button7.35:1AAA
Muted text7.23:1AAA
Accent7.41:1AAA
Destructive5.32:1AA
Dark mode
Text on background20.21:1AAA
Text on card19.94:1AAA
Primary button7.79:1AAA
Secondary button7.35:1AAA
Muted text8.78:1AAA
Accent7.41:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 327.077);
  --foreground: oklch(0.084 0.026 328.916);
  --muted: oklch(0.935 0.004 108.794);
  --muted-foreground: oklch(0.413 0.005 108.925);
  --popover: oklch(0.991 0.004 327.077);
  --popover-foreground: oklch(0.084 0.026 328.916);
  --card: oklch(0.982 0.008 327.117);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.856 0.02 327.254);
  --primary-foreground: oklch(0.334 0.031 327.862);
  --secondary: oklch(0.876 0.016 109.048);
  --secondary-foreground: oklch(0.364 0.024 109.9);
  --accent: oklch(0.869 0.012 200.719);
  --accent-foreground: oklch(0.354 0.018 200.336);
  --destructive: oklch(0.555 0.22 28.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.02 327.254);
  --chart-1: oklch(0.856 0.02 327.254);
  --chart-2: oklch(0.876 0.016 109.048);
  --chart-3: oklch(0.869 0.012 200.719);
  --chart-4: oklch(0.897 0.013 108.984);
  --chart-5: oklch(0.854 0.025 327.304);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.018 327.993);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.006 109.248);
  --muted-foreground: oklch(0.777 0.004 108.808);
  --popover: oklch(0.127 0.018 327.993);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.021 328.229);
  --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.856 0.02 327.254);
  --primary-foreground: oklch(0.334 0.031 327.862);
  --secondary: oklch(0.876 0.016 109.048);
  --secondary-foreground: oklch(0.364 0.024 109.9);
  --accent: oklch(0.869 0.012 200.719);
  --accent-foreground: oklch(0.354 0.018 200.336);
  --destructive: oklch(0.608 0.233 28.299);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.02 327.254);
  --chart-1: oklch(0.856 0.02 327.254);
  --chart-2: oklch(0.876 0.016 109.048);
  --chart-3: oklch(0.869 0.012 200.719);
  --chart-4: oklch(0.897 0.013 108.984);
  --chart-5: oklch(0.854 0.025 327.304);
}