Impeccable is a shadcn/ui theme built around a green primary color (#667740) with green accents (#4a7740). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#667740) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090c04black | #fbfcf8snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #060802black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #090c04black | #fbfcf8snow |
| Primary | #667740darkolivegreen | #667740darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #776d40darkolivegreen | #776d40darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eae4cdantiquewhite | #322d15darkslategray |
| Muted foreground | #54524adarkolivegreen | #b5b3abdarkgray |
| Accent | #4a7740darkolivegreen | #4a7740darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b220amaroon | #ec6032tomato |
| Destructive foreground | #f8c2b0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #667740darkolivegreen | #667740darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 4.89:1 | AA |
| Secondary button | 5.17:1 | AA |
| Muted text | 6.15:1 | AA |
| Accent | 5.21:1 | AA |
| Destructive | 7.14:1 | AAA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 4.89:1 | AA |
| Secondary button | 5.17:1 | AA |
| Muted text | 6.58:1 | AA |
| Accent | 5.21:1 | AA |
| Destructive | 6.29:1 | AA |
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.146 0.02 120.797);
--muted: oklch(0.918 0.031 96.565);
--muted-foreground: oklch(0.438 0.013 96.507);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.02 120.797);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.018 120.543);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.542 0.081 123.491);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.065 97.051);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.523 0.097 139.939);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.363 0.109 37.41);
--destructive-foreground: oklch(0.856 0.067 39.235);
--ring: oklch(0.542 0.081 123.491);
--chart-1: oklch(0.542 0.081 123.491);
--chart-2: oklch(0.534 0.065 97.051);
--chart-3: oklch(0.523 0.097 139.939);
--chart-4: oklch(0.565 0.069 97.049);
--chart-5: oklch(0.55 0.088 123.736);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.005 120.851);
--muted: oklch(0.295 0.038 97.026);
--muted-foreground: oklch(0.766 0.011 96.343);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.005 120.851);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 120.809);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.542 0.081 123.491);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.065 97.051);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.523 0.097 139.939);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.662 0.183 38.119);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.542 0.081 123.491);
--chart-1: oklch(0.542 0.081 123.491);
--chart-2: oklch(0.534 0.065 97.051);
--chart-3: oklch(0.523 0.097 139.939);
--chart-4: oklch(0.565 0.069 97.049);
--chart-5: oklch(0.55 0.088 123.736);
}