Quiet for shadcn/ui

Quiet is a shadcn/ui theme built around a muted light green primary color (#f9f9f6) with muted light green accents (#f7f9f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f9f9f6) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0f1203black
#fbfbf9snow
Card
#fcfcfcsnow
#060703black
Card foreground
#0b0d02black
#fdfdfcwhite
Popover
#fcfcfcsnow
#060703black
Popover foreground
#0b0d02black
#fdfdfcwhite
Primary
#f9f9f6whitesmoke
#f9f9f6whitesmoke
Primary foreground
#323521darkslategray
#323521darkslategray
Secondary
#f9f8f6whitesmoke
#f9f8f6whitesmoke
Secondary foreground
#352f21darkslategray
#352f21darkslategray
Muted
#e3e1degainsboro
#21201cblack
Muted foreground
#444341darkslategray
#bebdbbsilver
Accent
#f7f9f6whitesmoke
#f7f9f6whitesmoke
Accent foreground
#283521darkslategray
#283521darkslategray
Destructive
#9c1b11firebrick
#ea4e43tomato
Destructive foreground
#fce5e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f9f6whitesmoke
#f9f9f6whitesmoke

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card19.15:1AAA
Primary button11.93:1AAA
Secondary button12.51:1AAA
Muted text7.58:1AAA
Accent12.23:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.85:1AAA
Primary button11.93:1AAA
Secondary button12.51:1AAA
Muted text8.71:1AAA
Accent12.23:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.031 116.513);
  --muted: oklch(0.911 0.005 84.566);
  --muted-foreground: oklch(0.382 0.003 84.572);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.153 0.027 115.672);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.153 0.027 115.672);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.981 0.005 114.155);
  --primary-foreground: oklch(0.321 0.034 116.03);
  --secondary: oklch(0.979 0.003 84.56);
  --secondary-foreground: oklch(0.307 0.024 84.393);
  --accent: oklch(0.98 0.005 134.854);
  --accent-foreground: oklch(0.312 0.039 135.532);
  --destructive: oklch(0.448 0.166 29.484);
  --destructive-foreground: oklch(0.94 0.025 22.531);
  --ring: oklch(0.981 0.005 114.155);
  --chart-1: oklch(0.981 0.005 114.155);
  --chart-2: oklch(0.979 0.003 84.56);
  --chart-3: oklch(0.98 0.005 134.854);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.982 0.005 114.166);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 114.6);
  --foreground: oklch(0.987 0.003 114.127);
  --muted: oklch(0.242 0.007 84.593);
  --muted-foreground: oklch(0.799 0.003 84.56);
  --popover: oklch(0.125 0.011 114.6);
  --popover-foreground: oklch(0.994 0.002 114.096);
  --card: oklch(0.125 0.011 114.6);
  --card-foreground: oklch(0.994 0.002 114.096);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.005 114.155);
  --primary-foreground: oklch(0.321 0.034 116.03);
  --secondary: oklch(0.979 0.003 84.56);
  --secondary-foreground: oklch(0.307 0.024 84.393);
  --accent: oklch(0.98 0.005 134.854);
  --accent-foreground: oklch(0.312 0.039 135.532);
  --destructive: oklch(0.639 0.194 27.957);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.981 0.005 114.155);
  --chart-1: oklch(0.981 0.005 114.155);
  --chart-2: oklch(0.979 0.003 84.56);
  --chart-3: oklch(0.98 0.005 134.854);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.982 0.005 114.166);
}