Miserly is a shadcn/ui theme built around a vivid green primary color (#05ad24) with vivid purple accents (#ad058e). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#05ad24) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040b06black |
| Foreground | #020803black | #fbfdfcwhite |
| Card | #fbfefbwhite | #040b06black |
| Card foreground | #020803black | #fbfdfcwhite |
| Popover | #fbfefbwhite | #040b06black |
| Popover foreground | #020803black | #fbfdfcwhite |
| Primary | #05ad24forestgreen | #05ad24forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ad058emediumvioletred | #ad058emediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1e9f0whitesmoke | #160e14black |
| Muted foreground | #473845darkslategray | #c7b8c4silver |
| Accent | #ad058emediumvioletred | #ad058emediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c13b01firebrick | #fe6d2ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #05ad24forestgreen | #05ad24forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 2.99:1 | Fail |
| Secondary button | 6.57:1 | AA |
| Muted text | 9.20:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 5.41:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 2.99:1 | Fail |
| Secondary button | 6.57:1 | AA |
| Muted text | 10.01:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 7.44:1 | AAA |
Paste this into your globals.css to use Miserly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 151.331);
--foreground: oklch(0.124 0.024 150.316);
--muted: oklch(0.943 0.012 331.586);
--muted-foreground: oklch(0.362 0.03 332.519);
--popover: oklch(0.994 0.005 151.331);
--popover-foreground: oklch(0.124 0.024 150.316);
--card: oklch(0.994 0.005 151.331);
--card-foreground: oklch(0.124 0.024 150.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.65 0.21 143.95);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.22 338.677);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.22 338.677);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.544 0.179 37.616);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.65 0.21 143.95);
--chart-1: oklch(0.65 0.21 143.95);
--chart-2: oklch(0.508 0.22 338.677);
--chart-3: oklch(0.508 0.22 338.677);
--chart-4: oklch(0.54 0.234 338.739);
--chart-5: oklch(0.657 0.213 143.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.018 150.667);
--foreground: oklch(0.993 0.003 151.364);
--muted: oklch(0.177 0.018 332.792);
--muted-foreground: oklch(0.798 0.024 331.833);
--popover: oklch(0.139 0.018 150.667);
--popover-foreground: oklch(0.993 0.003 151.364);
--card: oklch(0.139 0.018 150.667);
--card-foreground: oklch(0.993 0.003 151.364);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.65 0.21 143.95);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.508 0.22 338.677);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.508 0.22 338.677);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.705 0.191 41.234);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.65 0.21 143.95);
--chart-1: oklch(0.65 0.21 143.95);
--chart-2: oklch(0.508 0.22 338.677);
--chart-3: oklch(0.508 0.22 338.677);
--chart-4: oklch(0.54 0.234 338.739);
--chart-5: oklch(0.657 0.213 143.835);
}