Impolite is a shadcn/ui theme built around a cyan primary color (#58bce4) with blue accents (#5877e4). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the cyan primary (#58bce4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fbfdghostwhite | #000000black |
| Foreground | #010709black | #f5f8f9whitesmoke |
| Card | #f6fbfdghostwhite | #000000black |
| Card foreground | #010709black | #f5f8f9whitesmoke |
| Popover | #f6fbfdghostwhite | #000000black |
| Popover foreground | #010709black | #f5f8f9whitesmoke |
| Primary | #58bce4mediumturquoise | #58bce4mediumturquoise |
| Primary foreground | #010709black | #010709black |
| Secondary | #58e4c6mediumturquoise | #58e4c6mediumturquoise |
| Secondary foreground | #010907black | #010907black |
| Muted | #ecf3f2whitesmoke | #0c1311black |
| Muted foreground | #4a4f4edarkslategray | #b0b5b4darkgray |
| Accent | #5877e4royalblue | #5877e4royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a81f10firebrick | #eb402dtomato |
| Destructive foreground | #fdeeeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #58bce4mediumturquoise | #58bce4mediumturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 12.75:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 4.07:1 | AA Large |
| Destructive | 6.49:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 9.42:1 | AAA |
| Secondary button | 12.75:1 | AAA |
| Muted text | 9.08:1 | AAA |
| Accent | 4.07:1 | AA Large |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Impolite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.006 223.19);
--foreground: oklch(0.119 0.015 216.637);
--muted: oklch(0.959 0.007 181.862);
--muted-foreground: oklch(0.422 0.006 181.658);
--popover: oklch(0.986 0.006 223.19);
--popover-foreground: oklch(0.119 0.015 216.637);
--card: oklch(0.986 0.006 223.19);
--card-foreground: oklch(0.119 0.015 216.637);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.752 0.109 226.926);
--primary-foreground: oklch(0.119 0.015 216.563);
--secondary: oklch(0.835 0.128 176.048);
--secondary-foreground: oklch(0.127 0.018 181.971);
--accent: oklch(0.6 0.169 269.192);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.474 0.174 30.516);
--destructive-foreground: oklch(0.961 0.017 25.139);
--ring: oklch(0.752 0.109 226.926);
--chart-1: oklch(0.752 0.109 226.926);
--chart-2: oklch(0.835 0.128 176.048);
--chart-3: oklch(0.6 0.169 269.192);
--chart-4: oklch(0.845 0.121 176.722);
--chart-5: oklch(0.755 0.112 227.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.003 223.165);
--muted: oklch(0.177 0.01 180.344);
--muted-foreground: oklch(0.768 0.005 181.874);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.003 223.165);
--card: oklch(0 0 0);
--card-foreground: oklch(0.978 0.003 223.165);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.752 0.109 226.926);
--primary-foreground: oklch(0.119 0.015 216.563);
--secondary: oklch(0.835 0.128 176.048);
--secondary-foreground: oklch(0.127 0.018 181.971);
--accent: oklch(0.6 0.169 269.192);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.211 30.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.752 0.109 226.926);
--chart-1: oklch(0.752 0.109 226.926);
--chart-2: oklch(0.835 0.128 176.048);
--chart-3: oklch(0.6 0.169 269.192);
--chart-4: oklch(0.845 0.121 176.722);
--chart-5: oklch(0.755 0.112 227.175);
}