Silent for shadcn/ui

Silent is a shadcn/ui theme built around a muted green primary color (#6b8a4c) with muted light green accents (#d9dfd2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#6b8a4c) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050703black
Foreground
#080d03black
#f7faf5whitesmoke
Card
#fcfdfcwhite
#050703black
Card foreground
#080d03black
#f7faf5whitesmoke
Popover
#fcfdfcwhite
#050703black
Popover foreground
#080d03black
#f7faf5whitesmoke
Primary
#6b8a4colivedrab
#6b8a4colivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9dfd2gainsboro
#171915black
Secondary foreground
#404b35darkslategray
#b0b5aadarkgray
Muted
#dbeacdgainsboro
#243215black
Muted foreground
#52594adarkolivegreen
#adb5a6darkgray
Accent
#d9dfd2gainsboro
#171915black
Accent foreground
#404b35darkslategray
#b0b5aadarkgray
Destructive
#712009maroon
#ec4618orangered
Destructive foreground
#f9c3b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b8a4colivedrab
#6b8a4colivedrab

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button3.90:1AA Large
Secondary button6.79:1AA
Muted text5.75:1AA
Accent6.79:1AA
Destructive7.05:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button3.90:1AA Large
Secondary button8.48:1AAA
Muted text6.44:1AA
Accent8.48:1AAA
Destructive3.84: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.994 0.002 128.485);
  --foreground: oklch(0.147 0.026 127.512);
  --muted: oklch(0.917 0.041 128.968);
  --muted-foreground: oklch(0.453 0.025 129.095);
  --popover: oklch(0.994 0.002 128.485);
  --popover-foreground: oklch(0.147 0.026 127.512);
  --card: oklch(0.994 0.002 128.485);
  --card-foreground: oklch(0.147 0.026 127.512);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.095 130.534);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.896 0.019 128.697);
  --secondary-foreground: oklch(0.395 0.038 129.598);
  --accent: oklch(0.896 0.019 128.697);
  --accent-foreground: oklch(0.395 0.038 129.598);
  --destructive: oklch(0.371 0.119 35.344);
  --destructive-foreground: oklch(0.86 0.066 35.989);
  --ring: oklch(0.595 0.095 130.534);
  --chart-1: oklch(0.595 0.095 130.534);
  --chart-2: oklch(0.896 0.019 128.697);
  --chart-3: oklch(0.896 0.019 128.697);
  --chart-4: oklch(0.917 0.015 128.644);
  --chart-5: oklch(0.602 0.104 130.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 127.566);
  --foreground: oklch(0.982 0.008 128.547);
  --muted: oklch(0.296 0.051 130.783);
  --muted-foreground: oklch(0.762 0.022 128.788);
  --popover: oklch(0.124 0.015 127.566);
  --popover-foreground: oklch(0.982 0.008 128.547);
  --card: oklch(0.124 0.015 127.566);
  --card-foreground: oklch(0.982 0.008 128.547);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.595 0.095 130.534);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.208 0.007 128.823);
  --secondary-foreground: oklch(0.767 0.017 128.705);
  --accent: oklch(0.208 0.007 128.823);
  --accent-foreground: oklch(0.767 0.017 128.705);
  --destructive: oklch(0.63 0.21 34.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.095 130.534);
  --chart-1: oklch(0.595 0.095 130.534);
  --chart-2: oklch(0.208 0.007 128.823);
  --chart-3: oklch(0.208 0.007 128.823);
  --chart-4: oklch(0.243 0.009 128.86);
  --chart-5: oklch(0.602 0.104 130.748);
}