Impure for shadcn/ui

Impure is a shadcn/ui theme built around a vivid light purple primary color (#fce2fd) with vivid light teal accents (#e2fdfc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light purple primary (#fce2fd) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#040104black
#faf5faghostwhite
Card
#fcfcfcsnow
#0a050bblack
Card foreground
#000000black
#fcf8fcsnow
Popover
#ffffffwhite
#070307black
Popover foreground
#040104black
#faf5faghostwhite
Primary
#fce2fdlavenderblush
#fce2fdlavenderblush
Primary foreground
#400543midnightblue
#400543midnightblue
Secondary
#fdfce2lightyellow
#fdfce2lightyellow
Secondary foreground
#434005darkolivegreen
#434005darkolivegreen
Muted
#f3f2e2beige
#1d1c0cblack
Muted foreground
#4f4f4adarkslategray
#b5b5b0darkgray
Accent
#e2fdfclightcyan
#e2fdfclightcyan
Accent foreground
#054340darkslategray
#054340darkslategray
Destructive
#bf4b08chocolate
#f5630forangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fce2fdlavenderblush
#fce2fdlavenderblush

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button13.22:1AAA
Secondary button10.21:1AAA
Muted text7.29:1AAA
Accent10.45:1AAA
Destructive4.97:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.23:1AAA
Primary button13.22:1AAA
Secondary button10.21:1AAA
Muted text8.36:1AAA
Accent10.45:1AAA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.019 325.731);
  --muted: oklch(0.957 0.02 104.332);
  --muted-foreground: oklch(0.425 0.007 104.254);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.019 325.731);
  --card: oklch(0.992 0 161.565);
  --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.942 0.044 324.399);
  --primary-foreground: oklch(0.267 0.116 325.885);
  --secondary: oklch(0.985 0.033 104.53);
  --secondary-foreground: oklch(0.362 0.074 106.311);
  --accent: oklch(0.974 0.028 193.047);
  --accent-foreground: oklch(0.346 0.058 189.441);
  --destructive: oklch(0.561 0.163 42.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.044 324.399);
  --chart-1: oklch(0.942 0.044 324.399);
  --chart-2: oklch(0.985 0.033 104.53);
  --chart-3: oklch(0.974 0.028 193.047);
  --chart-4: oklch(0.992 0.017 104.255);
  --chart-5: oklch(0.942 0.046 324.408);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.017 325.254);
  --foreground: oklch(0.975 0.009 324.184);
  --muted: oklch(0.221 0.027 105.809);
  --muted-foreground: oklch(0.771 0.006 104.107);
  --popover: oklch(0.111 0.017 325.254);
  --popover-foreground: oklch(0.975 0.009 324.184);
  --card: oklch(0.127 0.019 325.228);
  --card-foreground: oklch(0.983 0.006 324.166);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.942 0.044 324.399);
  --primary-foreground: oklch(0.267 0.116 325.885);
  --secondary: oklch(0.985 0.033 104.53);
  --secondary-foreground: oklch(0.362 0.074 106.311);
  --accent: oklch(0.974 0.028 193.047);
  --accent-foreground: oklch(0.346 0.058 189.441);
  --destructive: oklch(0.678 0.196 43.154);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.942 0.044 324.399);
  --chart-1: oklch(0.942 0.044 324.399);
  --chart-2: oklch(0.985 0.033 104.53);
  --chart-3: oklch(0.974 0.028 193.047);
  --chart-4: oklch(0.992 0.017 104.255);
  --chart-5: oklch(0.942 0.046 324.408);
}