Impolite for shadcn/ui

Impolite is a shadcn/ui theme built around a vivid light purple primary color (#f291d8) with neutral gray accents (#dcdbdb). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the vivid light purple primary (#f291d8) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#040103black
Foreground
#000000black
#ffffffwhite
Card
#fdf7fbsnow
#040103black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7fbsnow
#040103black
Popover foreground
#000000black
#ffffffwhite
Primary
#f291d8plum
#f291d8plum
Primary foreground
#490938indigo
#490938indigo
Secondary
#dcdbdbgainsboro
#382e35darkslategray
Secondary foreground
#434243darkslategray
#d1c7celightgrey
Muted
#e5d1e0gainsboro
#2e1a28darkslategray
Muted foreground
#61565edimgray
#a99ea6darkgray
Accent
#dcdbdbgainsboro
#382e35darkslategray
Accent foreground
#434243darkslategray
#d1c7celightgrey
Destructive
#6d0a03maroon
#f93224orangered
Destructive foreground
#fdaba5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f291d8plum
#f291d8plum

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.14:1AAA
Secondary button7.23:1AAA
Muted text4.85:1AA
Accent7.23:1AAA
Destructive6.79:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button7.14:1AAA
Secondary button7.90:1AAA
Muted text6.29:1AA
Accent7.90:1AAA
Destructive3.79:1AA Large

CSS variables

Paste this into your globals.css to use Impolite in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 334.66);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.029 335.101);
  --muted-foreground: oklch(0.468 0.019 335.223);
  --popover: oklch(0.982 0.007 334.66);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 334.66);
  --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.781 0.145 337.533);
  --primary-foreground: oklch(0.281 0.108 341.579);
  --secondary: oklch(0.892 0.001 334.548);
  --secondary-foreground: oklch(0.379 0.002 334.638);
  --accent: oklch(0.892 0.001 334.548);
  --accent-foreground: oklch(0.379 0.002 334.638);
  --destructive: oklch(0.343 0.132 30.219);
  --destructive-foreground: oklch(0.819 0.097 23.907);
  --ring: oklch(0.781 0.145 337.533);
  --chart-1: oklch(0.781 0.145 337.533);
  --chart-2: oklch(0.892 0.001 334.548);
  --chart-3: oklch(0.892 0.001 334.548);
  --chart-4: oklch(0.915 0.001 334.543);
  --chart-5: oklch(0.78 0.15 337.641);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.014 335.063);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.04 337.142);
  --muted-foreground: oklch(0.71 0.017 334.944);
  --popover: oklch(0.086 0.014 335.063);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.086 0.014 335.063);
  --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.781 0.145 337.533);
  --primary-foreground: oklch(0.281 0.108 341.579);
  --secondary: oklch(0.315 0.018 335.469);
  --secondary-foreground: oklch(0.84 0.014 334.81);
  --accent: oklch(0.315 0.018 335.469);
  --accent-foreground: oklch(0.84 0.014 334.81);
  --destructive: oklch(0.637 0.234 29.439);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.781 0.145 337.533);
  --chart-1: oklch(0.781 0.145 337.533);
  --chart-2: oklch(0.315 0.018 335.469);
  --chart-3: oklch(0.315 0.018 335.469);
  --chart-4: oklch(0.345 0.02 335.496);
  --chart-5: oklch(0.78 0.15 337.641);
}