Frugal for shadcn/ui

Frugal is a shadcn/ui theme built around a muted light blue primary color (#dee0e3) with muted blue accents (#b2bcc7). The light mode uses a neutral background (#f8fafc). Dark mode keeps the muted light blue primary (#dee0e3) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#030507black
Foreground
#010509black
#f9fafbghostwhite
Card
#f8fafcghostwhite
#030507black
Card foreground
#010509black
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#030507black
Popover foreground
#010509black
#f9fafbghostwhite
Primary
#dee0e3gainsboro
#dee0e3gainsboro
Primary foreground
#42474ddarkslategray
#42474ddarkslategray
Secondary
#c9ced4lightgrey
#1f2123black
Secondary foreground
#30353bdarkslategray
#b6babesilver
Muted
#e7eaeelavender
#111418black
Muted foreground
#485361darkslategray
#9eaab7darkgray
Accent
#b2bcc7silver
#2f353ddarkslategray
Accent foreground
#1e2329darkslategray
#c8ced5lightgrey
Destructive
#880601darkred
#fd3730crimson
Destructive foreground
#fec0bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dee0e3gainsboro
#dee0e3gainsboro

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.09:1AAA
Secondary button7.81:1AAA
Muted text6.48:1AA
Accent8.19:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.09:1AAA
Secondary button8.27:1AAA
Muted text7.81:1AAA
Accent7.82:1AAA
Destructive3.64: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.983 0.004 253.247);
  --foreground: oklch(0.108 0.018 241.765);
  --muted: oklch(0.936 0.007 253.269);
  --muted-foreground: oklch(0.437 0.027 253.568);
  --popover: oklch(0.983 0.004 253.247);
  --popover-foreground: oklch(0.108 0.018 241.765);
  --card: oklch(0.983 0.004 253.247);
  --card-foreground: oklch(0.108 0.018 241.765);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.906 0.004 253.252);
  --primary-foreground: oklch(0.395 0.013 253.415);
  --secondary: oklch(0.849 0.01 253.295);
  --secondary-foreground: oklch(0.326 0.014 253.468);
  --accent: oklch(0.79 0.02 253.376);
  --accent-foreground: oklch(0.254 0.014 253.535);
  --destructive: oklch(0.397 0.159 29.652);
  --destructive-foreground: oklch(0.863 0.073 20.937);
  --ring: oklch(0.906 0.004 253.252);
  --chart-1: oklch(0.906 0.004 253.252);
  --chart-2: oklch(0.849 0.01 253.295);
  --chart-3: oklch(0.79 0.02 253.376);
  --chart-4: oklch(0.874 0.008 253.282);
  --chart-5: oklch(0.906 0.006 253.264);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 247.502);
  --foreground: oklch(0.984 0.002 253.231);
  --muted: oklch(0.19 0.01 253.53);
  --muted-foreground: oklch(0.732 0.024 253.419);
  --popover: oklch(0.112 0.009 247.502);
  --popover-foreground: oklch(0.984 0.002 253.231);
  --card: oklch(0.112 0.009 247.502);
  --card-foreground: oklch(0.984 0.002 253.231);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.906 0.004 253.252);
  --primary-foreground: oklch(0.395 0.013 253.415);
  --secondary: oklch(0.247 0.005 253.348);
  --secondary-foreground: oklch(0.786 0.008 253.285);
  --accent: oklch(0.326 0.016 253.507);
  --accent-foreground: oklch(0.849 0.011 253.308);
  --destructive: oklch(0.648 0.233 28.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.906 0.004 253.252);
  --chart-1: oklch(0.906 0.004 253.252);
  --chart-2: oklch(0.247 0.005 253.348);
  --chart-3: oklch(0.326 0.016 253.507);
  --chart-4: oklch(0.278 0.006 253.355);
  --chart-5: oklch(0.906 0.006 253.264);
}