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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.09:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.64:1 | AA Large |
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);
}