Silent for shadcn/ui

Silent is a shadcn/ui theme built around a deep purple primary color (#10050e) with muted light purple accents (#e2dae1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#10050e) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#0d030bblack
#fdfcfdwhite
Card
#fefbfewhite
#040104black
Card foreground
#0d030bblack
#fdfcfdwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#0d030bblack
#fdfcfdwhite
Primary
#10050eblack
#10050eblack
Primary foreground
#d572c8orchid
#d572c8orchid
Secondary
#e2dae1gainsboro
#251d24black
Secondary foreground
#4e3c4bdarkslategray
#c3b1c1silver
Muted
#f0e6eelavender
#1a0f18black
Muted foreground
#60575fdimgray
#a89fa7darkgray
Accent
#e2dae1gainsboro
#251d24black
Accent foreground
#4e3c4bdarkslategray
#c3b1c1silver
Destructive
#7c1604maroon
#e92907orangered
Destructive foreground
#fdc0b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10050eblack
#10050eblack

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button6.74:1AA
Secondary button7.38:1AAA
Muted text5.68:1AA
Accent7.38:1AAA
Destructive6.80:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.74:1AA
Secondary button8.10:1AAA
Muted text7.26:1AAA
Accent8.10:1AAA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 329.744);
  --foreground: oklch(0.122 0.033 331.434);
  --muted: oklch(0.934 0.016 329.894);
  --muted-foreground: oklch(0.469 0.017 330.126);
  --popover: oklch(0.991 0.005 329.744);
  --popover-foreground: oklch(0.122 0.033 331.434);
  --card: oklch(0.991 0.005 329.744);
  --card-foreground: oklch(0.122 0.033 331.434);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.138 0.03 331.627);
  --primary-foreground: oklch(0.692 0.163 332.324);
  --secondary: oklch(0.896 0.014 329.871);
  --secondary-foreground: oklch(0.381 0.035 330.768);
  --accent: oklch(0.896 0.014 329.871);
  --accent-foreground: oklch(0.381 0.035 330.768);
  --destructive: oklch(0.38 0.139 32.248);
  --destructive-foreground: oklch(0.859 0.072 30.007);
  --ring: oklch(0.138 0.03 331.627);
  --chart-1: oklch(0.138 0.03 331.627);
  --chart-2: oklch(0.896 0.014 329.871);
  --chart-3: oklch(0.896 0.014 329.871);
  --chart-4: oklch(0.92 0.01 329.823);
  --chart-5: oklch(0.138 0.032 331.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.02 330.918);
  --foreground: oklch(0.992 0.002 329.702);
  --muted: oklch(0.188 0.024 331.154);
  --muted-foreground: oklch(0.711 0.015 329.948);
  --popover: oklch(0.085 0.02 330.918);
  --popover-foreground: oklch(0.992 0.002 329.702);
  --card: oklch(0.085 0.02 330.918);
  --card-foreground: oklch(0.992 0.002 329.702);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.138 0.03 331.627);
  --primary-foreground: oklch(0.692 0.163 332.324);
  --secondary: oklch(0.243 0.019 330.605);
  --secondary-foreground: oklch(0.781 0.029 330.139);
  --accent: oklch(0.243 0.019 330.605);
  --accent-foreground: oklch(0.781 0.029 330.139);
  --destructive: oklch(0.6 0.227 31.53);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.138 0.03 331.627);
  --chart-1: oklch(0.138 0.03 331.627);
  --chart-2: oklch(0.243 0.019 330.605);
  --chart-3: oklch(0.243 0.019 330.605);
  --chart-4: oklch(0.274 0.023 330.658);
  --chart-5: oklch(0.138 0.032 331.728);
}