Impolite is a shadcn/ui theme built around a near-black primary color (#050300) with near-black accents (#040500). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the near-black primary (#050300) on an orange-tinted background (#0f0b06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #0f0b06black |
| Foreground | #090602black | #f9f8f6whitesmoke |
| Card | #fcfaf8snow | #0f0b06black |
| Card foreground | #090602black | #f9f8f6whitesmoke |
| Popover | #fcfaf8snow | #0f0b06black |
| Popover foreground | #090602black | #f9f8f6whitesmoke |
| Primary | #050300black | #050300black |
| Primary foreground | #c27e0fdarkgoldenrod | #c27e0fdarkgoldenrod |
| Secondary | #050100black | #050100black |
| Secondary foreground | #f15a46tomato | #f15a46tomato |
| Muted | #efdedcantiquewhite | #231210black |
| Muted foreground | #64514fdimgray | #b09e9bdarkgray |
| Accent | #040500black | #040500black |
| Accent foreground | #adc20fyellowgreen | #adc20fyellowgreen |
| Destructive | #a31300darkred | #ff4b33tomato |
| Destructive foreground | #ffdbd6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050300black | #050300black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 6.22:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 10.23:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 6.16:1 | AA |
| Secondary button | 6.22:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 10.23:1 | AAA |
| Destructive | 3.33: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.003 79.929);
--foreground: oklch(0.124 0.017 88.114);
--muted: oklch(0.914 0.019 26.591);
--muted-foreground: oklch(0.454 0.026 26.922);
--popover: oklch(0.986 0.003 79.929);
--popover-foreground: oklch(0.124 0.017 88.114);
--card: oklch(0.986 0.003 79.929);
--card-foreground: oklch(0.124 0.017 88.114);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.099 0.017 89.812);
--primary-foreground: oklch(0.648 0.137 70.288);
--secondary: oklch(0.082 0.02 37.387);
--secondary-foreground: oklch(0.664 0.19 30.323);
--accent: oklch(0.108 0.022 113.45);
--accent-foreground: oklch(0.773 0.176 117.336);
--destructive: oklch(0.457 0.178 31.034);
--destructive-foreground: oklch(0.92 0.041 26.798);
--ring: oklch(0.099 0.017 89.812);
--chart-1: oklch(0.099 0.017 89.812);
--chart-2: oklch(0.082 0.02 37.387);
--chart-3: oklch(0.108 0.022 113.45);
--chart-4: oklch(0.133 0.034 36.167);
--chart-5: oklch(0.1 0.018 90.127);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.013 82.074);
--foreground: oklch(0.979 0.003 79.929);
--muted: oklch(0.206 0.029 27.999);
--muted-foreground: oklch(0.714 0.023 26.682);
--popover: oklch(0.153 0.013 82.074);
--popover-foreground: oklch(0.979 0.003 79.929);
--card: oklch(0.153 0.013 82.074);
--card-foreground: oklch(0.979 0.003 79.929);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.099 0.017 89.812);
--primary-foreground: oklch(0.648 0.137 70.288);
--secondary: oklch(0.082 0.02 37.387);
--secondary-foreground: oklch(0.664 0.19 30.323);
--accent: oklch(0.108 0.022 113.45);
--accent-foreground: oklch(0.773 0.176 117.336);
--destructive: oklch(0.668 0.22 30.894);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.099 0.017 89.812);
--chart-1: oklch(0.099 0.017 89.812);
--chart-2: oklch(0.082 0.02 37.387);
--chart-3: oklch(0.108 0.022 113.45);
--chart-4: oklch(0.133 0.034 36.167);
--chart-5: oklch(0.1 0.018 90.127);
}