Frugal for shadcn/ui

Frugal is a shadcn/ui theme built around a deep purple primary color (#1e0925) with deep teal accents (#09251e). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep purple primary (#1e0925) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#070109black
#faf9fasnow
Card
#fdfbfewhite
#000000black
Card foreground
#070109black
#faf9fasnow
Popover
#fdfbfewhite
#000000black
Popover foreground
#070109black
#faf9fasnow
Primary
#1e0925black
#1e0925black
Primary foreground
#ca80e0orchid
#ca80e0orchid
Secondary
#251e09black
#251e09black
Secondary foreground
#c9a631goldenrod
#c9a631goldenrod
Muted
#eae8e1beige
#1e1c15black
Muted foreground
#484847darkslategray
#b8b8b7silver
Accent
#09251eblack
#09251eblack
Accent foreground
#31c9a6lightseagreen
#31c9a6lightseagreen
Destructive
#a53a09saddlebrown
#f35c16orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e0925black
#1e0925black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button6.84:1AA
Secondary button7.05:1AAA
Muted text7.44:1AAA
Accent7.75:1AAA
Destructive6.55:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.84:1AA
Secondary button7.05:1AAA
Muted text8.61:1AAA
Accent7.75:1AAA
Destructive6.35:1AA

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 318.326);
  --foreground: oklch(0.102 0.032 320.891);
  --muted: oklch(0.93 0.009 92.747);
  --muted-foreground: oklch(0.401 0.002 92.703);
  --popover: oklch(0.991 0.004 318.326);
  --popover-foreground: oklch(0.102 0.032 320.891);
  --card: oklch(0.991 0.004 318.326);
  --card-foreground: oklch(0.102 0.032 320.891);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.19 0.06 317.662);
  --primary-foreground: oklch(0.711 0.156 318.013);
  --secondary: oklch(0.239 0.036 92.575);
  --secondary-foreground: oklch(0.736 0.135 91.116);
  --accent: oklch(0.241 0.036 175.148);
  --accent-foreground: oklch(0.751 0.134 172.699);
  --destructive: oklch(0.495 0.15 40.069);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.19 0.06 317.662);
  --chart-1: oklch(0.19 0.06 317.662);
  --chart-2: oklch(0.239 0.036 92.575);
  --chart-3: oklch(0.241 0.036 175.148);
  --chart-4: oklch(0.282 0.045 92.288);
  --chart-5: oklch(0.19 0.063 317.609);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 318.328);
  --muted: oklch(0.225 0.012 93.076);
  --muted-foreground: oklch(0.782 0.002 92.677);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 318.328);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 318.328);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.19 0.06 317.662);
  --primary-foreground: oklch(0.711 0.156 318.013);
  --secondary: oklch(0.239 0.036 92.575);
  --secondary-foreground: oklch(0.736 0.135 91.116);
  --accent: oklch(0.241 0.036 175.148);
  --accent-foreground: oklch(0.751 0.134 172.699);
  --destructive: oklch(0.665 0.198 40.486);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.19 0.06 317.662);
  --chart-1: oklch(0.19 0.06 317.662);
  --chart-2: oklch(0.239 0.036 92.575);
  --chart-3: oklch(0.241 0.036 175.148);
  --chart-4: oklch(0.282 0.045 92.288);
  --chart-5: oklch(0.19 0.063 317.609);
}