Thrifty is a shadcn/ui theme built around a neutral gray primary color (#4c4542) with neutral gray accents (#4c4a42). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the neutral gray primary (#4c4542) on a neutral background (#080402).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #080402black |
| Foreground | #100805black | #ffffffwhite |
| Card | #fdfcfbsnow | #080402black |
| Card foreground | #100805black | #ffffffwhite |
| Popover | #fdfcfbsnow | #080402black |
| Popover foreground | #100805black | #ffffffwhite |
| Primary | #4c4542darkslategray | #4c4542darkslategray |
| Primary foreground | #e3dfdegainsboro | #e3dfdegainsboro |
| Secondary | #4c4245darkslategray | #4c4245darkslategray |
| Secondary foreground | #e3dedfgainsboro | #e3dedfgainsboro |
| Muted | #e5e1e2gainsboro | #1e1a1bblack |
| Muted foreground | #5e5557dimgray | #aaa1a3darkgray |
| Accent | #4c4a42darkslategray | #4c4a42darkslategray |
| Accent foreground | #e3e2degainsboro | #e3e2degainsboro |
| Destructive | #691707maroon | #f14522orangered |
| Destructive foreground | #f9b6a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c4542darkslategray | #4c4542darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 7.09:1 | AAA |
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Thrifty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 43.114);
--foreground: oklch(0.144 0.017 48.195);
--muted: oklch(0.913 0.004 2.2);
--muted-foreground: oklch(0.458 0.012 2.782);
--popover: oklch(0.992 0.002 43.114);
--popover-foreground: oklch(0.144 0.017 48.195);
--card: oklch(0.992 0.002 43.114);
--card-foreground: oklch(0.144 0.017 48.195);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.397 0.011 42.905);
--primary-foreground: oklch(0.907 0.004 43.092);
--secondary: oklch(0.392 0.014 3.041);
--secondary-foreground: oklch(0.905 0.005 2.213);
--accent: oklch(0.41 0.013 94.18);
--accent-foreground: oklch(0.911 0.005 93.92);
--destructive: oklch(0.346 0.118 33.031);
--destructive-foreground: oklch(0.836 0.081 31.552);
--ring: oklch(0.397 0.011 42.905);
--chart-1: oklch(0.397 0.011 42.905);
--chart-2: oklch(0.392 0.014 3.041);
--chart-3: oklch(0.41 0.013 94.18);
--chart-4: oklch(0.419 0.015 3.057);
--chart-5: oklch(0.397 0.016 42.825);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.012 50.419);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.006 2.84);
--muted-foreground: oklch(0.718 0.011 2.475);
--popover: oklch(0.113 0.012 50.419);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.012 50.419);
--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.397 0.011 42.905);
--primary-foreground: oklch(0.907 0.004 43.092);
--secondary: oklch(0.392 0.014 3.041);
--secondary-foreground: oklch(0.905 0.005 2.213);
--accent: oklch(0.41 0.013 94.18);
--accent-foreground: oklch(0.911 0.005 93.92);
--destructive: oklch(0.638 0.214 33.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.011 42.905);
--chart-1: oklch(0.397 0.011 42.905);
--chart-2: oklch(0.392 0.014 3.041);
--chart-3: oklch(0.41 0.013 94.18);
--chart-4: oklch(0.419 0.015 3.057);
--chart-5: oklch(0.397 0.016 42.825);
}