Impolite is a shadcn/ui theme built around a light pink primary color (#e8d4e1) with light blue accents (#d4e1e8). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the light pink primary (#e8d4e1) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #030203black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdf7fbsnow | #030203black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7fbsnow | #030203black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e8d4e1gainsboro | #e8d4e1gainsboro |
| Primary foreground | #5a304bdarkslategray | #5a304bdarkslategray |
| Secondary | #e1e8d4gainsboro | #e1e8d4gainsboro |
| Secondary foreground | #13170cblack | #13170cblack |
| Muted | #f1f6eahoneydew | #111509black |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #d4e1e8gainsboro | #d4e1e8gainsboro |
| Accent foreground | #304b5adarkslategray | #304b5adarkslategray |
| Destructive | #953904saddlebrown | #fa7629tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8d4e1gainsboro | #e8d4e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 14.44:1 | AAA |
| Muted text | 8.70:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 7.31:1 | AAA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 14.44:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 7.65:1 | AAA |
Paste this into your globals.css to use Impolite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 338.887);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.016 123.183);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.982 0.008 338.887);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.008 338.887);
--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.889 0.028 339.393);
--primary-foreground: oklch(0.372 0.073 342.609);
--secondary: oklch(0.92 0.029 123.406);
--secondary-foreground: oklch(0.198 0.022 124.721);
--accent: oklch(0.901 0.017 232.86);
--accent-foreground: oklch(0.396 0.042 234.711);
--destructive: oklch(0.468 0.136 43.228);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.889 0.028 339.393);
--chart-1: oklch(0.889 0.028 339.393);
--chart-2: oklch(0.92 0.029 123.406);
--chart-3: oklch(0.901 0.017 232.86);
--chart-4: oklch(0.939 0.022 123.286);
--chart-5: oklch(0.888 0.031 339.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.01 338.882);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.023 124.951);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.088 0.01 338.882);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.088 0.01 338.882);
--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.889 0.028 339.393);
--primary-foreground: oklch(0.372 0.073 342.609);
--secondary: oklch(0.92 0.029 123.406);
--secondary-foreground: oklch(0.198 0.022 124.721);
--accent: oklch(0.901 0.017 232.86);
--accent-foreground: oklch(0.396 0.042 234.711);
--destructive: oklch(0.71 0.182 46.131);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.889 0.028 339.393);
--chart-1: oklch(0.889 0.028 339.393);
--chart-2: oklch(0.92 0.029 123.406);
--chart-3: oklch(0.901 0.017 232.86);
--chart-4: oklch(0.939 0.022 123.286);
--chart-5: oklch(0.888 0.031 339.458);
}