Impolite is a shadcn/ui theme built around a vivid deep violet primary color (#150123) with muted light violet accents (#c3baca). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep violet primary (#150123) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0212black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0c0212black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c0212black | #fdfcfdwhite |
| Primary | #150123black | #150123black |
| Primary foreground | #e4befdthistle | #e4befdthistle |
| Secondary | #d7d4d8lightgrey | #322938darkslategray |
| Secondary foreground | #3e3a40darkslategray | #cbc1d1thistle |
| Muted | #dcd7e0gainsboro | #251f28darkslategray |
| Muted foreground | #514559darkslategray | #b2a6badarkgray |
| Accent | #c3bacasilver | #40304bdarkslategray |
| Accent foreground | #2a232edarkslategray | #d8cddflightgrey |
| Destructive | #bb3707firebrick | #ec4509orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #150123black | #150123black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 12.33:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 12.33:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Impolite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.045 312.68);
--muted: oklch(0.886 0.013 312.25);
--muted-foreground: oklch(0.41 0.037 311.685);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.045 312.68);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.045 312.68);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.154 0.074 309.353);
--primary-foreground: oklch(0.856 0.094 311.535);
--secondary: oklch(0.874 0.006 312.306);
--secondary-foreground: oklch(0.355 0.012 312.117);
--accent: oklch(0.801 0.024 312.132);
--accent-foreground: oklch(0.27 0.021 311.772);
--destructive: oklch(0.53 0.176 36.497);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.154 0.074 309.353);
--chart-1: oklch(0.154 0.074 309.353);
--chart-2: oklch(0.874 0.006 312.306);
--chart-3: oklch(0.801 0.024 312.132);
--chart-4: oklch(0.898 0.005 312.317);
--chart-5: oklch(0.154 0.076 309.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 312.351);
--muted: oklch(0.251 0.018 311.839);
--muted-foreground: oklch(0.741 0.032 312.036);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 312.351);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 312.351);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.154 0.074 309.353);
--primary-foreground: oklch(0.856 0.094 311.535);
--secondary: oklch(0.297 0.028 311.647);
--secondary-foreground: oklch(0.825 0.024 312.138);
--accent: oklch(0.338 0.051 311.224);
--accent-foreground: oklch(0.863 0.027 312.125);
--destructive: oklch(0.629 0.211 36.128);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.154 0.074 309.353);
--chart-1: oklch(0.154 0.074 309.353);
--chart-2: oklch(0.297 0.028 311.647);
--chart-3: oklch(0.338 0.051 311.224);
--chart-4: oklch(0.326 0.032 311.623);
--chart-5: oklch(0.154 0.076 309.297);
}