Thrifty is a shadcn/ui theme built around a light yellow primary color (#efddb3) with light green accents (#e3efb3). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the light yellow primary (#efddb3) on a neutral background (#080602).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #080602black |
| Foreground | #000000black | #fcfbf8snow |
| Card | #fdfdfcwhite | #080602black |
| Card foreground | #000000black | #fcfbf8snow |
| Popover | #fdfdfcwhite | #080602black |
| Popover foreground | #000000black | #fcfbf8snow |
| Primary | #efddb3wheat | #efddb3wheat |
| Primary foreground | #5d4713saddlebrown | #5d4713saddlebrown |
| Secondary | #efbfb3lightpink | #efbfb3lightpink |
| Secondary foreground | #5d2213maroon | #5d2213maroon |
| Muted | #e5d9d6gainsboro | #291d1ablack |
| Muted foreground | #585250dimgray | #afa8a7darkgray |
| Accent | #e3efb3palegoldenrod | #e3efb3palegoldenrod |
| Accent foreground | #070802black | #070802black |
| Destructive | #993a0asaddlebrown | #e1550echocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efddb3wheat | #efddb3wheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 16.57:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 16.57:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Thrifty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 87.429);
--foreground: oklch(0 0 0);
--muted: oklch(0.895 0.014 34.298);
--muted-foreground: oklch(0.443 0.009 34.297);
--popover: oklch(0.994 0.002 87.429);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.002 87.429);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.902 0.059 87.552);
--primary-foreground: oklch(0.411 0.074 84.546);
--secondary: oklch(0.844 0.059 34.392);
--secondary-foreground: oklch(0.338 0.091 35.184);
--accent: oklch(0.929 0.08 117.165);
--accent-foreground: oklch(0.132 0.021 116.21);
--destructive: oklch(0.476 0.139 41.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.059 87.552);
--chart-1: oklch(0.902 0.059 87.552);
--chart-2: oklch(0.844 0.059 34.392);
--chart-3: oklch(0.929 0.08 117.165);
--chart-4: oklch(0.87 0.048 34.348);
--chart-5: oklch(0.904 0.061 87.545);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.015 93.061);
--foreground: oklch(0.987 0.004 87.441);
--muted: oklch(0.243 0.02 34.447);
--muted-foreground: oklch(0.738 0.008 34.301);
--popover: oklch(0.124 0.015 93.061);
--popover-foreground: oklch(0.987 0.004 87.441);
--card: oklch(0.124 0.015 93.061);
--card-foreground: oklch(0.987 0.004 87.441);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.902 0.059 87.552);
--primary-foreground: oklch(0.411 0.074 84.546);
--secondary: oklch(0.844 0.059 34.392);
--secondary-foreground: oklch(0.338 0.091 35.184);
--accent: oklch(0.929 0.08 117.165);
--accent-foreground: oklch(0.132 0.021 116.21);
--destructive: oklch(0.628 0.188 40.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.059 87.552);
--chart-1: oklch(0.902 0.059 87.552);
--chart-2: oklch(0.844 0.059 34.392);
--chart-3: oklch(0.929 0.08 117.165);
--chart-4: oklch(0.87 0.048 34.348);
--chart-5: oklch(0.904 0.061 87.545);
}