Miserly is a shadcn/ui theme built around a blue primary color (#456b96) with orange accents (#967045). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#456b96) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #02070dblack | #f9fafbghostwhite |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #02070dblack | #f9fafbghostwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #02070dblack | #f9fafbghostwhite |
| Primary | #456b96steelblue | #456b96steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #967045sienna | #967045sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2ede9linen | #16120dblack |
| Muted foreground | #464544darkslategray | #bbbab9silver |
| Accent | #967045sienna | #967045sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d21504firebrick | #e61705red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #456b96steelblue | #456b96steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.53:1 | AA |
| Secondary button | 4.44:1 | AA Large |
| Muted text | 8.24:1 | AAA |
| Accent | 4.44:1 | AA Large |
| Destructive | 5.45:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 5.53:1 | AA |
| Secondary button | 4.44:1 | AA Large |
| Muted text | 9.60:1 | AAA |
| Accent | 4.44:1 | AA Large |
| Destructive | 4.67:1 | AA |
Paste this into your globals.css to use Miserly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 251.473);
--foreground: oklch(0.125 0.02 241.541);
--muted: oklch(0.949 0.008 71.379);
--muted-foreground: oklch(0.39 0.002 71.417);
--popover: oklch(0.991 0.003 251.473);
--popover-foreground: oklch(0.125 0.02 241.541);
--card: oklch(0.991 0.003 251.473);
--card-foreground: oklch(0.125 0.02 241.541);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.518 0.081 252.636);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.076 69.037);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.076 69.037);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.548 0.217 30.077);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.518 0.081 252.636);
--chart-1: oklch(0.518 0.081 252.636);
--chart-2: oklch(0.574 0.076 69.037);
--chart-3: oklch(0.574 0.076 69.037);
--chart-4: oklch(0.603 0.081 69.007);
--chart-5: oklch(0.518 0.088 252.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 251.47);
--muted: oklch(0.186 0.012 70.751);
--muted-foreground: oklch(0.79 0.001 71.437);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 251.47);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 251.47);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.518 0.081 252.636);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.574 0.076 69.037);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.574 0.076 69.037);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.587 0.233 30.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.518 0.081 252.636);
--chart-1: oklch(0.518 0.081 252.636);
--chart-2: oklch(0.574 0.076 69.037);
--chart-3: oklch(0.574 0.076 69.037);
--chart-4: oklch(0.603 0.081 69.007);
--chart-5: oklch(0.518 0.088 252.768);
}