Impolite is a shadcn/ui theme built around a deep purple primary color (#422145) with deep teal accents (#214542). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep purple primary (#422145) on a neutral background (#080208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #080208black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fbf8fcghostwhite | #0b030cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfcfdwhite | #080208black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #422145darkslategray | #422145darkslategray |
| Primary foreground | #dbbadethistle | #dbbadethistle |
| Secondary | #454221darkolivegreen | #454221darkolivegreen |
| Secondary foreground | #dedbbawheat | #dedbbawheat |
| Muted | #ebebe5linen | #1a1a14black |
| Muted foreground | #5d5c51dimgray | #aeada2darkgray |
| Accent | #214542darkslategray | #214542darkslategray |
| Accent foreground | #badedbpowderblue | #badedbpowderblue |
| Destructive | #731102maroon | #e62305orangered |
| Destructive foreground | #fdb5aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #422145darkslategray | #422145darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.07:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Impolite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 323.148);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.008 102.358);
--muted-foreground: oklch(0.471 0.017 102.794);
--popover: oklch(0.992 0.003 323.148);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 323.161);
--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.308 0.077 324.101);
--primary-foreground: oklch(0.828 0.062 323.471);
--secondary: oklch(0.375 0.051 103.977);
--secondary-foreground: oklch(0.886 0.045 102.991);
--accent: oklch(0.364 0.043 188.392);
--accent-foreground: oklch(0.874 0.039 190.268);
--destructive: oklch(0.359 0.133 31.925);
--destructive-foreground: oklch(0.838 0.086 28.804);
--ring: oklch(0.308 0.077 324.101);
--chart-1: oklch(0.308 0.077 324.101);
--chart-2: oklch(0.375 0.051 103.977);
--chart-3: oklch(0.364 0.043 188.392);
--chart-4: oklch(0.411 0.057 103.996);
--chart-5: oklch(0.308 0.082 324.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.027 324.981);
--foreground: oklch(0.992 0.001 323.139);
--muted: oklch(0.215 0.012 103.059);
--muted-foreground: oklch(0.746 0.016 102.549);
--popover: oklch(0.107 0.027 324.981);
--popover-foreground: oklch(0.992 0.001 323.139);
--card: oklch(0.123 0.031 324.776);
--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.308 0.077 324.101);
--primary-foreground: oklch(0.828 0.062 323.471);
--secondary: oklch(0.375 0.051 103.977);
--secondary-foreground: oklch(0.886 0.045 102.991);
--accent: oklch(0.364 0.043 188.392);
--accent-foreground: oklch(0.874 0.039 190.268);
--destructive: oklch(0.592 0.228 31.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.308 0.077 324.101);
--chart-1: oklch(0.308 0.077 324.101);
--chart-2: oklch(0.375 0.051 103.977);
--chart-3: oklch(0.364 0.043 188.392);
--chart-4: oklch(0.411 0.057 103.996);
--chart-5: oklch(0.308 0.082 324.151);
}