Impropriety for shadcn/ui

Impropriety is a shadcn/ui theme built around a vivid indigo primary color (#2209dc) with vivid violet accents (#8b09dc). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the vivid indigo primary (#2209dc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#000000black
Foreground
#050311black
#f5f5fawhitesmoke
Card
#f7f7fdghostwhite
#000000black
Card foreground
#050311black
#f5f5fawhitesmoke
Popover
#f7f7fdghostwhite
#000000black
Popover foreground
#050311black
#f5f5fawhitesmoke
Primary
#2209dcmediumblue
#2209dcmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#095adcroyalblue
#095adcroyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5deebgainsboro
#141c2ablack
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#8b09dcdarkviolet
#8b09dcdarkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ca2216firebrick
#cf2317firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2209dcmediumblue
#2209dcmediumblue

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button9.79:1AAA
Secondary button5.97:1AA
Muted text4.42:1AA Large
Accent6.60:1AA
Destructive5.59:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button9.79:1AAA
Secondary button5.97:1AA
Muted text6.22:1AA
Accent6.60:1AA
Destructive5.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 291.607);
  --foreground: oklch(0.115 0.036 287.296);
  --muted: oklch(0.898 0.021 259.945);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.977 0.009 291.607);
  --popover-foreground: oklch(0.115 0.036 287.296);
  --card: oklch(0.977 0.009 291.607);
  --card-foreground: oklch(0.115 0.036 287.296);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.417 0.272 268.557);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.211 260.85);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.264 304.499);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.541 0.203 29.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.272 268.557);
  --chart-1: oklch(0.417 0.272 268.557);
  --chart-2: oklch(0.511 0.211 260.85);
  --chart-3: oklch(0.514 0.264 304.499);
  --chart-4: oklch(0.536 0.222 260.892);
  --chart-5: oklch(0.419 0.277 267.9);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.972 0.007 291.649);
  --muted: oklch(0.225 0.029 259.702);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.972 0.007 291.649);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.972 0.007 291.649);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.417 0.272 268.557);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.511 0.211 260.85);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.514 0.264 304.499);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.55 0.206 29.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.272 268.557);
  --chart-1: oklch(0.417 0.272 268.557);
  --chart-2: oklch(0.511 0.211 260.85);
  --chart-3: oklch(0.514 0.264 304.499);
  --chart-4: oklch(0.536 0.222 260.892);
  --chart-5: oklch(0.419 0.277 267.9);
}