Imperfect is a shadcn/ui theme built around a muted red primary color (#a18c8f) with muted orange accents (#a1938c). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted red primary (#a18c8f) on a red-tinted background (#0a0506).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0a0506black |
| Foreground | #150407black | #ffffffwhite |
| Card | #faf5f6whitesmoke | #0e0608black |
| Card foreground | #110305black | #ffffffwhite |
| Popover | #faf5f6whitesmoke | #0e0608black |
| Popover foreground | #110305black | #ffffffwhite |
| Primary | #a18c8frosybrown | #a18c8frosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #a18c9arosybrown | #a18c9arosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9e2e6gainsboro | #1d161ablack |
| Muted foreground | #685e65dimgray | #a1979ddarkgray |
| Accent | #a1938crosybrown | #a1938crosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #ae3f13brown | #e6531achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a18c8frosybrown | #a18c8frosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.72:1 | AA |
| Muted text | 4.89:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 5.93:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.72:1 | AA |
| Muted text | 6.27:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Imperfect in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 6.691);
--foreground: oklch(0.143 0.035 10.232);
--muted: oklch(0.92 0.008 338.176);
--muted-foreground: oklch(0.495 0.016 338.649);
--popover: oklch(0.974 0.006 6.741);
--popover-foreground: oklch(0.13 0.03 8.969);
--card: oklch(0.974 0.006 6.741);
--card-foreground: oklch(0.13 0.03 8.969);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.66 0.026 7.561);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.663 0.032 338.946);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.019 50.302);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.519 0.154 39.127);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.66 0.026 7.561);
--chart-1: oklch(0.66 0.026 7.561);
--chart-2: oklch(0.663 0.032 338.946);
--chart-3: oklch(0.674 0.019 50.302);
--chart-4: oklch(0.689 0.029 338.837);
--chart-5: oklch(0.656 0.033 7.866);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 7.046);
--foreground: oklch(1 0 180);
--muted: oklch(0.211 0.012 339.153);
--muted-foreground: oklch(0.686 0.015 338.43);
--popover: oklch(0.137 0.015 7.72);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.015 7.72);
--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.66 0.026 7.561);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.663 0.032 338.946);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.674 0.019 50.302);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.634 0.192 38.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.66 0.026 7.561);
--chart-1: oklch(0.66 0.026 7.561);
--chart-2: oklch(0.663 0.032 338.946);
--chart-3: oklch(0.674 0.019 50.302);
--chart-4: oklch(0.689 0.029 338.837);
--chart-5: oklch(0.656 0.033 7.866);
}