Thrifty is a shadcn/ui theme built around a vivid light pink primary color (#f598ca) with neutral gray accents (#d7d5d6). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid light pink primary (#f598ca) on a neutral background (#080205).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #080205black |
| Foreground | #040103black | #ffffffwhite |
| Card | #fdf7fasnow | #080205black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fdf7fasnow | #080205black |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #f598caplum | #f598caplum |
| Primary foreground | #540830maroon | #540830maroon |
| Secondary | #d7d5d6lightgrey | #392d33darkslategray |
| Secondary foreground | #3f3b3ddarkslategray | #d2c6cclightgrey |
| Muted | #f5f0f2whitesmoke | #0f0a0dblack |
| Muted foreground | #5f4955dimgray | #b6a0acdarkgray |
| Accent | #d7d5d6lightgrey | #392d33darkslategray |
| Accent foreground | #3f3b3ddarkslategray | #d2c6cclightgrey |
| Destructive | #9d370csaddlebrown | #d54b10chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f598caplum | #f598caplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Thrifty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 343.613);
--foreground: oklch(0.085 0.016 343.36);
--muted: oklch(0.959 0.006 343.597);
--muted-foreground: oklch(0.433 0.035 345.341);
--popover: oklch(0.982 0.007 343.613);
--popover-foreground: oklch(0.085 0.016 343.36);
--card: oklch(0.982 0.007 343.613);
--card-foreground: oklch(0.085 0.016 343.36);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.79 0.126 347.159);
--primary-foreground: oklch(0.298 0.112 354.652);
--secondary: oklch(0.875 0.003 343.536);
--secondary-foreground: oklch(0.358 0.006 343.861);
--accent: oklch(0.875 0.003 343.536);
--accent-foreground: oklch(0.358 0.006 343.861);
--destructive: oklch(0.478 0.144 39.622);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.79 0.126 347.159);
--chart-1: oklch(0.79 0.126 347.159);
--chart-2: oklch(0.875 0.003 343.536);
--chart-3: oklch(0.875 0.003 343.536);
--chart-4: oklch(0.899 0.003 343.516);
--chart-5: oklch(0.789 0.131 347.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.019 343.365);
--foreground: oklch(1 0 180);
--muted: oklch(0.154 0.009 344.905);
--muted-foreground: oklch(0.728 0.03 344.454);
--popover: oklch(0.107 0.019 343.365);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.019 343.365);
--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.79 0.126 347.159);
--primary-foreground: oklch(0.298 0.112 354.652);
--secondary: oklch(0.313 0.019 344.915);
--secondary-foreground: oklch(0.839 0.015 343.884);
--accent: oklch(0.313 0.019 344.915);
--accent-foreground: oklch(0.839 0.015 343.884);
--destructive: oklch(0.598 0.184 39.133);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.79 0.126 347.159);
--chart-1: oklch(0.79 0.126 347.159);
--chart-2: oklch(0.313 0.019 344.915);
--chart-3: oklch(0.313 0.019 344.915);
--chart-4: oklch(0.342 0.022 344.957);
--chart-5: oklch(0.789 0.131 347.294);
}