Impeccable is a shadcn/ui theme built around a muted deep violet primary color (#110d17) with muted deep purple accents (#160d17). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep violet primary (#110d17) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #110d17black | #110d17black |
| Primary foreground | #a592c3darkgray | #a592c3darkgray |
| Secondary | #0d0e17black | #0d0e17black |
| Secondary foreground | #9298c3darkgray | #9298c3darkgray |
| Muted | #dddee4gainsboro | #1b1c22black |
| Muted foreground | #51535cdimgray | #a3a4aedarkgray |
| Accent | #160d17black | #160d17black |
| Accent foreground | #be92c3darkgray | #be92c3darkgray |
| Destructive | #7c1f03maroon | #f94e1aorangered |
| Destructive foreground | #fdc5b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110d17black | #110d17black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 5.68:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 6.87:1 | AA |
| Muted text | 6.87:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Impeccable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.009 280.176);
--muted-foreground: oklch(0.443 0.015 279.779);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.168 0.022 301.655);
--primary-foreground: oklch(0.695 0.073 302.064);
--secondary: oklch(0.167 0.019 278.264);
--secondary-foreground: oklch(0.691 0.064 278.726);
--accent: oklch(0.175 0.025 322.564);
--accent-foreground: oklch(0.718 0.084 322.488);
--destructive: oklch(0.391 0.132 35.603);
--destructive-foreground: oklch(0.87 0.068 37.596);
--ring: oklch(0.168 0.022 301.655);
--chart-1: oklch(0.168 0.022 301.655);
--chart-2: oklch(0.167 0.019 278.264);
--chart-3: oklch(0.175 0.025 322.564);
--chart-4: oklch(0.196 0.026 277.862);
--chart-5: oklch(0.167 0.024 301.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 303.582);
--muted: oklch(0.227 0.013 279.406);
--muted-foreground: oklch(0.722 0.013 280.038);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 303.582);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 303.582);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.168 0.022 301.655);
--primary-foreground: oklch(0.695 0.073 302.064);
--secondary: oklch(0.167 0.019 278.264);
--secondary-foreground: oklch(0.691 0.064 278.726);
--accent: oklch(0.175 0.025 322.564);
--accent-foreground: oklch(0.718 0.084 322.488);
--destructive: oklch(0.66 0.215 35.777);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.168 0.022 301.655);
--chart-1: oklch(0.168 0.022 301.655);
--chart-2: oklch(0.167 0.019 278.264);
--chart-3: oklch(0.175 0.025 322.564);
--chart-4: oklch(0.196 0.026 277.862);
--chart-5: oklch(0.167 0.024 301.419);
}