Costly is a shadcn/ui theme built around a muted purple primary color (#9966a3) with muted green accents (#70a366). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the muted purple primary (#9966a3) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fbsnow | #030104black |
| Foreground | #0b030cblack | #fdfcfdwhite |
| Card | #fbf8fbsnow | #030104black |
| Card foreground | #0b030cblack | #fdfcfdwhite |
| Popover | #fbf8fbsnow | #030104black |
| Popover foreground | #0b030cblack | #fdfcfdwhite |
| Primary | #9966a3lightslategray | #9966a3lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #70a366gray | #70a366gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #dde5dcgainsboro | #1c231ablack |
| Muted foreground | #434e41darkslategray | #b3beb1silver |
| Accent | #70a366gray | #70a366gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #833101saddlebrown | #fd782btomato |
| Destructive foreground | #fed2b8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9966a3lightslategray | #9966a3lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 7.13:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 7.13:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 7.88:1 | AAA |
Paste this into your globals.css to use Costly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 320.539);
--foreground: oklch(0.122 0.028 322.111);
--muted: oklch(0.913 0.015 140.506);
--muted-foreground: oklch(0.41 0.025 140.439);
--popover: oklch(0.983 0.005 320.539);
--popover-foreground: oklch(0.122 0.028 322.111);
--card: oklch(0.983 0.005 320.539);
--card-foreground: oklch(0.122 0.028 322.111);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.587 0.108 320.751);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.664 0.103 140.342);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.664 0.103 140.342);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.426 0.124 43.383);
--destructive-foreground: oklch(0.895 0.061 51.717);
--ring: oklch(0.587 0.108 320.751);
--chart-1: oklch(0.587 0.108 320.751);
--chart-2: oklch(0.664 0.103 140.342);
--chart-3: oklch(0.664 0.103 140.342);
--chart-4: oklch(0.686 0.097 140.35);
--chart-5: oklch(0.585 0.12 320.759);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.014 321.899);
--foreground: oklch(0.992 0.001 320.533);
--muted: oklch(0.246 0.02 140.41);
--muted-foreground: oklch(0.79 0.021 140.49);
--popover: oklch(0.087 0.014 321.899);
--popover-foreground: oklch(0.992 0.001 320.533);
--card: oklch(0.087 0.014 321.899);
--card-foreground: oklch(0.992 0.001 320.533);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.587 0.108 320.751);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.664 0.103 140.342);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.664 0.103 140.342);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.718 0.183 46.233);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.587 0.108 320.751);
--chart-1: oklch(0.587 0.108 320.751);
--chart-2: oklch(0.664 0.103 140.342);
--chart-3: oklch(0.664 0.103 140.342);
--chart-4: oklch(0.686 0.097 140.35);
--chart-5: oklch(0.585 0.12 320.759);
}