Correspondent for shadcn/ui

Correspondent is a shadcn/ui theme built around a muted light violet primary color (#cec1d7) with muted light purple accents (#d7c1d5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light violet primary (#cec1d7) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08040bblack
Foreground
#0e0415black
#ffffffwhite
Card
#faf7fdghostwhite
#0b050fblack
Card foreground
#0c0311black
#ffffffwhite
Popover
#faf7fdghostwhite
#0b050fblack
Popover foreground
#0c0311black
#ffffffwhite
Primary
#cec1d7thistle
#cec1d7thistle
Primary foreground
#35283edarkslategray
#35283edarkslategray
Secondary
#c3c1d7lightsteelblue
#c3c1d7lightsteelblue
Secondary foreground
#2a283edarkslategray
#2a283edarkslategray
Muted
#d2d1e1lightgrey
#201e2edarkslategray
Muted foreground
#524f69dimgray
#9996b0darkgray
Accent
#d7c1d5thistle
#d7c1d5thistle
Accent foreground
#3e283cdarkslategray
#3e283cdarkslategray
Destructive
#5d0b09maroon
#ed4540tomato
Destructive foreground
#f6a4a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cec1d7thistle
#cec1d7thistle

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.10:1AAA
Primary button8.04:1AAA
Secondary button8.13:1AAA
Muted text5.19:1AA
Accent7.93:1AAA
Destructive7.05:1AAA
Dark mode
Text on background20.33:1AAA
Text on card20.11:1AAA
Primary button8.04:1AAA
Secondary button8.13:1AAA
Muted text5.69:1AA
Accent7.93:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 312.327);
  --foreground: oklch(0.139 0.042 311.33);
  --muted: oklch(0.866 0.022 290.53);
  --muted-foreground: oklch(0.44 0.042 289.131);
  --popover: oklch(0.981 0.008 312.295);
  --popover-foreground: oklch(0.128 0.037 312.523);
  --card: oklch(0.981 0.008 312.295);
  --card-foreground: oklch(0.128 0.037 312.523);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.829 0.033 312.066);
  --primary-foreground: oklch(0.302 0.041 311.324);
  --secondary: oklch(0.82 0.03 290.319);
  --secondary-foreground: oklch(0.29 0.039 288.315);
  --accent: oklch(0.835 0.035 329.051);
  --accent-foreground: oklch(0.312 0.045 330.079);
  --destructive: oklch(0.31 0.114 28.344);
  --destructive-foreground: oklch(0.8 0.098 21.645);
  --ring: oklch(0.829 0.033 312.066);
  --chart-1: oklch(0.829 0.033 312.066);
  --chart-2: oklch(0.82 0.03 290.319);
  --chart-3: oklch(0.835 0.035 329.051);
  --chart-4: oklch(0.848 0.025 290.449);
  --chart-5: oklch(0.827 0.037 312.024);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.023 313.781);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.03 288.532);
  --muted-foreground: oklch(0.685 0.038 289.957);
  --popover: oklch(0.133 0.026 312.368);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.026 312.368);
  --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.829 0.033 312.066);
  --primary-foreground: oklch(0.302 0.041 311.324);
  --secondary: oklch(0.82 0.03 290.319);
  --secondary-foreground: oklch(0.29 0.039 288.315);
  --accent: oklch(0.835 0.035 329.051);
  --accent-foreground: oklch(0.312 0.045 330.079);
  --destructive: oklch(0.635 0.205 26.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.829 0.033 312.066);
  --chart-1: oklch(0.829 0.033 312.066);
  --chart-2: oklch(0.82 0.03 290.319);
  --chart-3: oklch(0.835 0.035 329.051);
  --chart-4: oklch(0.848 0.025 290.449);
  --chart-5: oklch(0.827 0.037 312.024);
}