Frugal for shadcn/ui

Frugal is a shadcn/ui theme built around a vivid deep teal primary color (#063229) with vivid deep yellow accents (#322906). The light mode uses a neutral background (#f6fdfc). Dark mode keeps the vivid deep teal primary (#063229) on a teal-tinted background (#070e0c).

Color palette

TokenLightDark
Background
#f6fdfcmintcream
#070e0cblack
Foreground
#04100eblack
#fcfdfdwhite
Card
#f2fdfamintcream
#08110fblack
Card foreground
#030c0ablack
#ffffffwhite
Popover
#f6fdfcmintcream
#070e0cblack
Popover foreground
#04100eblack
#fcfdfdwhite
Primary
#063229darkslategray
#063229darkslategray
Primary foreground
#22e2bcturquoise
#22e2bcturquoise
Secondary
#290632black
#290632black
Secondary foreground
#d77ceeviolet
#d77ceeviolet
Muted
#e8dbeblavender
#211424black
Muted foreground
#4b414edarkslategray
#bbb1besilver
Accent
#322906black
#322906black
Accent foreground
#e2bc22goldenrod
#e2bc22goldenrod
Destructive
#690402maroon
#fb2c28crimson
Destructive foreground
#fda2a0lightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#063229darkslategray
#063229darkslategray

Contrast

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

Light mode
Text on background18.82:1AAA
Text on card19.00:1AAA
Primary button8.50:1AAA
Secondary button6.85:1AA
Muted text7.25:1AAA
Accent7.87:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.10:1AAA
Primary button8.50:1AAA
Secondary button6.85:1AA
Muted text8.53:1AAA
Accent7.87:1AAA
Destructive3.83: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.99 0.008 182.976);
  --foreground: oklch(0.161 0.02 180.712);
  --muted: oklch(0.906 0.027 319.453);
  --muted-foreground: oklch(0.391 0.025 319.461);
  --popover: oklch(0.99 0.008 182.976);
  --popover-foreground: oklch(0.161 0.02 180.712);
  --card: oklch(0.984 0.011 182.87);
  --card-foreground: oklch(0.143 0.017 182.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.284 0.048 176.026);
  --primary-foreground: oklch(0.817 0.151 173.989);
  --secondary: oklch(0.214 0.086 318.79);
  --secondary-foreground: oklch(0.727 0.183 319.354);
  --accent: oklch(0.283 0.051 94.71);
  --accent-foreground: oklch(0.805 0.158 93.143);
  --destructive: oklch(0.33 0.132 29.237);
  --destructive-foreground: oklch(0.802 0.109 20.824);
  --ring: oklch(0.284 0.048 176.026);
  --chart-1: oklch(0.284 0.048 176.026);
  --chart-2: oklch(0.214 0.086 318.79);
  --chart-3: oklch(0.283 0.051 94.71);
  --chart-4: oklch(0.247 0.103 318.553);
  --chart-5: oklch(0.287 0.05 175.801);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.012 181.593);
  --foreground: oklch(0.993 0.001 183.167);
  --muted: oklch(0.216 0.038 319.444);
  --muted-foreground: oklch(0.773 0.021 319.452);
  --popover: oklch(0.154 0.012 181.593);
  --popover-foreground: oklch(0.993 0.001 183.167);
  --card: oklch(0.169 0.014 180.796);
  --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.284 0.048 176.026);
  --primary-foreground: oklch(0.817 0.151 173.989);
  --secondary: oklch(0.214 0.086 318.79);
  --secondary-foreground: oklch(0.727 0.183 319.354);
  --accent: oklch(0.283 0.051 94.71);
  --accent-foreground: oklch(0.805 0.158 93.143);
  --destructive: oklch(0.636 0.239 28.002);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.284 0.048 176.026);
  --chart-1: oklch(0.284 0.048 176.026);
  --chart-2: oklch(0.214 0.086 318.79);
  --chart-3: oklch(0.283 0.051 94.71);
  --chart-4: oklch(0.247 0.103 318.553);
  --chart-5: oklch(0.287 0.05 175.801);
}