Miserly is a shadcn/ui theme built around a vivid purple primary color (#fb7ee0) with vivid cyan accents (#7ee0fb). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#fb7ee0) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #12020fblack | #ffffffwhite |
| Card | #fcf8fbsnow | #030303black |
| Card foreground | #0e020bblack | #ffffffwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #12020fblack | #ffffffwhite |
| Primary | #fb7ee0violet | #fb7ee0violet |
| Primary foreground | #450237indigo | #450237indigo |
| Secondary | #e0fb7ekhaki | #e0fb7ekhaki |
| Secondary foreground | #374502darkgreen | #374502darkgreen |
| Muted | #e0e6cbgainsboro | #2e3419darkslategray |
| Muted foreground | #565a49darkolivegreen | #b2b6a5darkgray |
| Accent | #7ee0fblightskyblue | #7ee0fblightskyblue |
| Accent foreground | #023745darkslategray | #023745darkslategray |
| Destructive | #b30f09firebrick | #f43a34crimson |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fb7ee0violet | #fb7ee0violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 9.07:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 9.07:1 | AAA |
| Muted text | 6.27:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Miserly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 332.666);
--foreground: oklch(0.134 0.045 335.604);
--muted: oklch(0.914 0.036 117.049);
--muted-foreground: oklch(0.459 0.026 117.364);
--popover: oklch(0.991 0.003 332.666);
--popover-foreground: oklch(0.134 0.045 335.604);
--card: oklch(0.983 0.006 332.716);
--card-foreground: oklch(0.119 0.04 334.609);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.767 0.189 336.14);
--primary-foreground: oklch(0.267 0.113 339.472);
--secondary: oklch(0.943 0.153 119.542);
--secondary-foreground: oklch(0.365 0.087 122.324);
--accent: oklch(0.857 0.099 217.824);
--accent-foreground: oklch(0.312 0.056 222.447);
--destructive: oklch(0.487 0.193 29.169);
--destructive-foreground: oklch(0.968 0.014 19.816);
--ring: oklch(0.767 0.189 336.14);
--chart-1: oklch(0.767 0.189 336.14);
--chart-2: oklch(0.943 0.153 119.542);
--chart-3: oklch(0.857 0.099 217.824);
--chart-4: oklch(0.949 0.138 119.139);
--chart-5: oklch(0.767 0.194 336.242);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.31 0.044 119.085);
--muted-foreground: oklch(0.767 0.023 116.876);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.767 0.189 336.14);
--primary-foreground: oklch(0.267 0.113 339.472);
--secondary: oklch(0.943 0.153 119.542);
--secondary-foreground: oklch(0.365 0.087 122.324);
--accent: oklch(0.857 0.099 217.824);
--accent-foreground: oklch(0.312 0.056 222.447);
--destructive: oklch(0.635 0.223 27.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.767 0.189 336.14);
--chart-1: oklch(0.767 0.189 336.14);
--chart-2: oklch(0.943 0.153 119.542);
--chart-3: oklch(0.857 0.099 217.824);
--chart-4: oklch(0.949 0.138 119.139);
--chart-5: oklch(0.767 0.194 336.242);
}