Impolite is a shadcn/ui theme built around a deep green primary color (#072210) with muted light green accents (#d6e0da). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#072210) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #050a07black |
| Foreground | #05140ablack | #ffffffwhite |
| Card | #f8fcf9mintcream | #050a07black |
| Card foreground | #05140ablack | #ffffffwhite |
| Popover | #f8fcf9mintcream | #050a07black |
| Popover foreground | #05140ablack | #ffffffwhite |
| Primary | #072210black | #072210black |
| Primary foreground | #27ce5fmediumseagreen | #27ce5fmediumseagreen |
| Secondary | #e6eae8lavender | #202822darkslategray |
| Secondary foreground | #4a554ddarkslategray | #b5c4basilver |
| Muted | #d5ebddgainsboro | #142a1bblack |
| Muted foreground | #404f45darkslategray | #b0bfb5silver |
| Accent | #d6e0dagainsboro | #2a3c30darkslategray |
| Accent foreground | #394c3fdarkslategray | #c3d5c9lightgrey |
| Destructive | #612a0asaddlebrown | #e86d26chocolate |
| Destructive foreground | #f6c4a7navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #072210black | #072210black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.26:1 | AAA |
| Text on card | 18.26:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Impolite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 157.135);
--foreground: oklch(0.175 0.031 154.172);
--muted: oklch(0.921 0.031 156.575);
--muted-foreground: oklch(0.412 0.026 155.888);
--popover: oklch(0.987 0.006 157.135);
--popover-foreground: oklch(0.175 0.031 154.172);
--card: oklch(0.987 0.006 157.135);
--card-foreground: oklch(0.175 0.031 154.172);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.226 0.049 151.588);
--primary-foreground: oklch(0.746 0.201 148.748);
--secondary: oklch(0.933 0.004 157.168);
--secondary-foreground: oklch(0.436 0.018 156.376);
--accent: oklch(0.898 0.014 156.945);
--accent-foreground: oklch(0.395 0.031 155.532);
--destructive: oklch(0.357 0.09 46.349);
--destructive-foreground: oklch(0.857 0.069 51.555);
--ring: oklch(0.226 0.049 151.588);
--chart-1: oklch(0.226 0.049 151.588);
--chart-2: oklch(0.933 0.004 157.168);
--chart-3: oklch(0.898 0.014 156.945);
--chart-4: oklch(0.955 0.003 157.202);
--chart-5: oklch(0.228 0.051 151.422);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.013 157.043);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.04 153.574);
--muted-foreground: oklch(0.791 0.023 156.671);
--popover: oklch(0.138 0.013 157.043);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.013 157.043);
--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.226 0.049 151.588);
--primary-foreground: oklch(0.746 0.201 148.748);
--secondary: oklch(0.266 0.015 156.083);
--secondary-foreground: oklch(0.806 0.021 156.728);
--accent: oklch(0.337 0.032 155.147);
--accent-foreground: oklch(0.856 0.026 156.636);
--destructive: oklch(0.673 0.172 46.184);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.226 0.049 151.588);
--chart-1: oklch(0.226 0.049 151.588);
--chart-2: oklch(0.266 0.015 156.083);
--chart-3: oklch(0.337 0.032 155.147);
--chart-4: oklch(0.298 0.017 156.02);
--chart-5: oklch(0.228 0.051 151.422);
}