Impish is a shadcn/ui theme built around a muted green primary color (#a2b394) with muted green accents (#94b395). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#a2b394) on a green-tinted background (#070c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070c03black |
| Foreground | #091203black | #f7f9f6whitesmoke |
| Card | #ffffffwhite | #070c03black |
| Card foreground | #091203black | #f7f9f6whitesmoke |
| Popover | #ffffffwhite | #070c03black |
| Popover foreground | #091203black | #f7f9f6whitesmoke |
| Primary | #a2b394darkseagreen | #a2b394darkseagreen |
| Primary foreground | #0a0c08black | #0a0c08black |
| Secondary | #b1b394darkgray | #b1b394darkgray |
| Secondary foreground | #0c0c08black | #0c0c08black |
| Muted | #e1e2dagainsboro | #25251dblack |
| Muted foreground | #71725adimgray | #a4a58ddarkgray |
| Accent | #94b395darkseagreen | #94b395darkseagreen |
| Accent foreground | #080c09black | #080c09black |
| Destructive | #911603darkred | #f52505orangered |
| Destructive foreground | #fecfc8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2b394darkseagreen | #a2b394darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 3.77:1 | AA Large |
| Accent | 8.54:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 8.54:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Impish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.167 0.034 130.391);
--muted: oklch(0.91 0.011 108.926);
--muted-foreground: oklch(0.545 0.036 109.914);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.167 0.034 130.391);
--card: oklch(1 0 180);
--card-foreground: oklch(0.167 0.034 130.391);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.744 0.048 131.061);
--primary-foreground: oklch(0.15 0.008 130.501);
--secondary: oklch(0.757 0.043 109.738);
--secondary-foreground: oklch(0.152 0.007 109.533);
--accent: oklch(0.734 0.054 146.322);
--accent-foreground: oklch(0.149 0.009 146.547);
--destructive: oklch(0.423 0.159 31.529);
--destructive-foreground: oklch(0.893 0.054 28.362);
--ring: oklch(0.744 0.048 131.061);
--chart-1: oklch(0.744 0.048 131.061);
--chart-2: oklch(0.757 0.043 109.738);
--chart-3: oklch(0.734 0.054 146.322);
--chart-4: oklch(0.777 0.039 109.626);
--chart-5: oklch(0.749 0.056 131.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.024 129.297);
--foreground: oklch(0.98 0.004 130.48);
--muted: oklch(0.262 0.014 109.7);
--muted-foreground: oklch(0.715 0.034 109.583);
--popover: oklch(0.145 0.024 129.297);
--popover-foreground: oklch(0.98 0.004 130.48);
--card: oklch(0.145 0.024 129.297);
--card-foreground: oklch(0.98 0.004 130.48);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.744 0.048 131.061);
--primary-foreground: oklch(0.15 0.008 130.501);
--secondary: oklch(0.757 0.043 109.738);
--secondary-foreground: oklch(0.152 0.007 109.533);
--accent: oklch(0.734 0.054 146.322);
--accent-foreground: oklch(0.149 0.009 146.547);
--destructive: oklch(0.62 0.239 30.987);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.744 0.048 131.061);
--chart-1: oklch(0.744 0.048 131.061);
--chart-2: oklch(0.757 0.043 109.738);
--chart-3: oklch(0.734 0.054 146.322);
--chart-4: oklch(0.777 0.039 109.626);
--chart-5: oklch(0.749 0.056 131.17);
}