Quiet for shadcn/ui

Quiet is a shadcn/ui theme built around a vivid violet primary color (#bc7cf4) with vivid teal accents (#7cf4bc). The light mode uses a neutral background (#faf6fd). Dark mode keeps the vivid violet primary (#bc7cf4) on a violet-tinted background (#08030c).

Color palette

TokenLightDark
Background
#faf6fdghostwhite
#08030cblack
Foreground
#08020eblack
#faf8fcghostwhite
Card
#faf6fdghostwhite
#08030cblack
Card foreground
#08020eblack
#faf8fcghostwhite
Popover
#faf6fdghostwhite
#08030cblack
Popover foreground
#08020eblack
#faf8fcghostwhite
Primary
#bc7cf4orchid
#bc7cf4orchid
Primary foreground
#200538midnightblue
#200538midnightblue
Secondary
#f4bc7cburlywood
#f4bc7cburlywood
Secondary foreground
#382005black
#382005black
Muted
#eeebe7linen
#181511black
Muted foreground
#605a52dimgray
#ada69fdarkgray
Accent
#7cf4bcaquamarine
#7cf4bcaquamarine
Accent foreground
#053820darkgreen
#053820darkgreen
Destructive
#b32100firebrick
#ff481forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bc7cf4orchid
#bc7cf4orchid

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button6.39:1AA
Secondary button8.91:1AAA
Muted text5.72:1AA
Accent9.70:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button6.39:1AA
Secondary button8.91:1AAA
Muted text7.58:1AAA
Accent9.70:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.01 309.683);
  --foreground: oklch(0.111 0.037 311.649);
  --muted: oklch(0.941 0.006 71.395);
  --muted-foreground: oklch(0.471 0.015 71.149);
  --popover: oklch(0.979 0.01 309.683);
  --popover-foreground: oklch(0.111 0.037 311.649);
  --card: oklch(0.979 0.01 309.683);
  --card-foreground: oklch(0.111 0.037 311.649);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.7 0.179 306.999);
  --primary-foreground: oklch(0.204 0.093 303.292);
  --secondary: oklch(0.831 0.104 69.327);
  --secondary-foreground: oklch(0.271 0.054 65.472);
  --accent: oklch(0.881 0.135 161.534);
  --accent-foreground: oklch(0.303 0.068 157.183);
  --destructive: oklch(0.495 0.184 32.653);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.179 306.999);
  --chart-1: oklch(0.7 0.179 306.999);
  --chart-2: oklch(0.831 0.104 69.327);
  --chart-3: oklch(0.881 0.135 161.534);
  --chart-4: oklch(0.848 0.093 69.779);
  --chart-5: oklch(0.698 0.185 306.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.025 311.195);
  --foreground: oklch(0.982 0.005 309.738);
  --muted: oklch(0.197 0.009 70.985);
  --muted-foreground: oklch(0.729 0.013 71.286);
  --popover: oklch(0.118 0.025 311.195);
  --popover-foreground: oklch(0.982 0.005 309.738);
  --card: oklch(0.118 0.025 311.195);
  --card-foreground: oklch(0.982 0.005 309.738);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.7 0.179 306.999);
  --primary-foreground: oklch(0.204 0.093 303.292);
  --secondary: oklch(0.831 0.104 69.327);
  --secondary-foreground: oklch(0.271 0.054 65.472);
  --accent: oklch(0.881 0.135 161.534);
  --accent-foreground: oklch(0.303 0.068 157.183);
  --destructive: oklch(0.664 0.225 33.568);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.7 0.179 306.999);
  --chart-1: oklch(0.7 0.179 306.999);
  --chart-2: oklch(0.831 0.104 69.327);
  --chart-3: oklch(0.881 0.135 161.534);
  --chart-4: oklch(0.848 0.093 69.779);
  --chart-5: oklch(0.698 0.185 306.873);
}