Reply for shadcn/ui

Reply is a shadcn/ui theme built around a deep violet primary color (#421d67) with muted light violet accents (#d9cee3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#421d67) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#ffffffwhite
#030104black
Foreground
#030105black
#ffffffwhite
Card
#ffffffwhite
#030104black
Card foreground
#030105black
#ffffffwhite
Popover
#ffffffwhite
#030104black
Popover foreground
#030105black
#ffffffwhite
Primary
#421d67indigo
#421d67indigo
Primary foreground
#dbc7efthistle
#dbc7efthistle
Secondary
#ebe7eelavender
#242225black
Secondary foreground
#524360darkslategray
#bdbabfsilver
Muted
#e3dbebgainsboro
#1c1424black
Muted foreground
#57505edimgray
#a8a1afdarkgray
Accent
#d9cee3gainsboro
#36303bdarkslategray
Accent foreground
#402f51darkslategray
#cfc9d4lightgrey
Destructive
#860803darkred
#f92b24crimson
Destructive foreground
#fdc0belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#421d67indigo
#421d67indigo

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.78:1AAA
Primary button8.34:1AAA
Secondary button7.37:1AAA
Muted text5.75:1AA
Accent7.98:1AAA
Destructive6.55:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button8.34:1AAA
Secondary button8.20:1AAA
Muted text7.11:1AAA
Accent7.92:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.026 310.939);
  --muted: oklch(0.903 0.022 308.191);
  --muted-foreground: oklch(0.442 0.024 307.859);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.076 0.026 310.939);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.076 0.026 310.939);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.327 0.124 302.999);
  --primary-foreground: oklch(0.86 0.059 307.706);
  --secondary: oklch(0.933 0.011 308.335);
  --secondary-foreground: oklch(0.41 0.051 307.053);
  --accent: oklch(0.867 0.03 308.074);
  --accent-foreground: oklch(0.339 0.062 306.334);
  --destructive: oklch(0.394 0.156 29.443);
  --destructive-foreground: oklch(0.864 0.07 20.887);
  --ring: oklch(0.327 0.124 302.999);
  --chart-1: oklch(0.327 0.124 302.999);
  --chart-2: oklch(0.933 0.011 308.335);
  --chart-3: oklch(0.867 0.03 308.074);
  --chart-4: oklch(0.958 0.007 308.384);
  --chart-5: oklch(0.326 0.13 302.575);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.013 309.58);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.21 0.031 306.782);
  --muted-foreground: oklch(0.72 0.021 308.133);
  --popover: oklch(0.084 0.013 309.58);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.084 0.013 309.58);
  --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.327 0.124 302.999);
  --primary-foreground: oklch(0.86 0.059 307.706);
  --secondary: oklch(0.256 0.006 308.214);
  --secondary-foreground: oklch(0.793 0.008 308.349);
  --accent: oklch(0.319 0.022 307.692);
  --accent-foreground: oklch(0.844 0.016 308.254);
  --destructive: oklch(0.633 0.238 28.573);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.327 0.124 302.999);
  --chart-1: oklch(0.327 0.124 302.999);
  --chart-2: oklch(0.256 0.006 308.214);
  --chart-3: oklch(0.319 0.022 307.692);
  --chart-4: oklch(0.287 0.007 308.201);
  --chart-5: oklch(0.326 0.13 302.575);
}