Savings is a shadcn/ui theme built around a muted deep purple primary color (#35213b) with muted deep purple accents (#3b2135). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#35213b) on a purple-tinted background (#0a030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a030cblack |
| Foreground | #110416black | #f8f6f9whitesmoke |
| Card | #ffffffwhite | #0a030cblack |
| Card foreground | #110416black | #f8f6f9whitesmoke |
| Popover | #ffffffwhite | #0a030cblack |
| Popover foreground | #110416black | #f8f6f9whitesmoke |
| Primary | #35213bdarkslategray | #35213bdarkslategray |
| Primary foreground | #cfb7d7thistle | #cfb7d7thistle |
| Secondary | #27213bdarkslategray | #27213bdarkslategray |
| Secondary foreground | #bfb7d7lightsteelblue | #bfb7d7lightsteelblue |
| Muted | #eae9eclavender | #141316black |
| Muted foreground | #3f3e42darkslategray | #bebdc1silver |
| Accent | #3b2135darkslategray | #3b2135darkslategray |
| Accent foreground | #d7b7cfthistle | #d7b7cfthistle |
| Destructive | #b51308firebrick | #f51a0ared |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #35213bdarkslategray | #35213bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.77:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 9.92:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Savings in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.045 317.914);
--muted: oklch(0.935 0.004 297.74);
--muted-foreground: oklch(0.366 0.007 297.504);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.045 317.914);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.045 317.914);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.283 0.054 317.389);
--primary-foreground: oklch(0.809 0.052 317.657);
--secondary: oklch(0.267 0.049 294.324);
--secondary-foreground: oklch(0.795 0.046 296.782);
--accent: oklch(0.289 0.052 336.666);
--accent-foreground: oklch(0.814 0.049 334.866);
--destructive: oklch(0.492 0.193 29.776);
--destructive-foreground: oklch(0.969 0.014 22.383);
--ring: oklch(0.283 0.054 317.389);
--chart-1: oklch(0.283 0.054 317.389);
--chart-2: oklch(0.267 0.049 294.324);
--chart-3: oklch(0.289 0.052 336.666);
--chart-4: oklch(0.293 0.056 294.173);
--chart-5: oklch(0.282 0.06 317.331);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.029 319.462);
--foreground: oklch(0.976 0.004 317.756);
--muted: oklch(0.188 0.007 297.195);
--muted-foreground: oklch(0.801 0.005 297.705);
--popover: oklch(0.12 0.029 319.462);
--popover-foreground: oklch(0.976 0.004 317.756);
--card: oklch(0.12 0.029 319.462);
--card-foreground: oklch(0.976 0.004 317.756);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.283 0.054 317.389);
--primary-foreground: oklch(0.809 0.052 317.657);
--secondary: oklch(0.267 0.049 294.324);
--secondary-foreground: oklch(0.795 0.046 296.782);
--accent: oklch(0.289 0.052 336.666);
--accent-foreground: oklch(0.814 0.049 334.866);
--destructive: oklch(0.615 0.244 29.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.283 0.054 317.389);
--chart-1: oklch(0.283 0.054 317.389);
--chart-2: oklch(0.267 0.049 294.324);
--chart-3: oklch(0.289 0.052 336.666);
--chart-4: oklch(0.293 0.056 294.173);
--chart-5: oklch(0.282 0.06 317.331);
}