Silent for shadcn/ui

Silent is a shadcn/ui theme built around a muted green primary color (#9cbf9f) with muted red accents (#bf9f9c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#9cbf9f) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030703black
Foreground
#051006black
#f9fbf9mintcream
Card
#f7fcf8mintcream
#050b05black
Card foreground
#040c04black
#fcfdfcwhite
Popover
#f7fcf8mintcream
#050b05black
Popover foreground
#040c04black
#fcfdfcwhite
Primary
#9cbf9fdarkseagreen
#9cbf9fdarkseagreen
Primary foreground
#101911black
#101911black
Secondary
#9f9cbfdarkgray
#9f9cbfdarkgray
Secondary foreground
#111019black
#111019black
Muted
#d9d8e3gainsboro
#1c1c27black
Muted foreground
#55526fdimgray
#9290addarkgray
Accent
#bf9f9crosybrown
#bf9f9crosybrown
Accent foreground
#191110black
#191110black
Destructive
#770804maroon
#f9362fcrimson
Destructive foreground
#fdb2b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9cbf9fdarkseagreen
#9cbf9fdarkseagreen

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.15:1AAA
Primary button8.83:1AAA
Secondary button7.19:1AAA
Muted text5.28:1AA
Accent7.66:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.52:1AAA
Primary button8.83:1AAA
Secondary button7.19:1AAA
Muted text5.49:1AA
Accent7.66:1AAA
Destructive3.76: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.004 148.022);
  --foreground: oklch(0.156 0.029 146.498);
  --muted: oklch(0.887 0.015 289.919);
  --muted-foreground: oklch(0.454 0.047 288.185);
  --popover: oklch(0.987 0.008 147.979);
  --popover-foreground: oklch(0.14 0.025 146.748);
  --card: oklch(0.987 0.008 147.979);
  --card-foreground: oklch(0.14 0.025 146.748);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.058 147.24);
  --primary-foreground: oklch(0.201 0.02 146.945);
  --secondary: oklch(0.708 0.05 288.881);
  --secondary-foreground: oklch(0.179 0.018 288.305);
  --accent: oklch(0.73 0.038 24.156);
  --accent-foreground: oklch(0.187 0.013 24.422);
  --destructive: oklch(0.361 0.142 29.395);
  --destructive-foreground: oklch(0.834 0.087 21.306);
  --ring: oklch(0.769 0.058 147.24);
  --chart-1: oklch(0.769 0.058 147.24);
  --chart-2: oklch(0.708 0.05 288.881);
  --chart-3: oklch(0.73 0.038 24.156);
  --chart-4: oklch(0.736 0.045 289.076);
  --chart-5: oklch(0.773 0.066 147.123);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.016 147.121);
  --foreground: oklch(0.985 0.002 148.04);
  --muted: oklch(0.231 0.022 288.395);
  --muted-foreground: oklch(0.664 0.043 288.997);
  --popover: oklch(0.138 0.018 147.115);
  --popover-foreground: oklch(0.993 0.001 148.052);
  --card: oklch(0.138 0.018 147.115);
  --card-foreground: oklch(0.993 0.001 148.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.058 147.24);
  --primary-foreground: oklch(0.201 0.02 146.945);
  --secondary: oklch(0.708 0.05 288.881);
  --secondary-foreground: oklch(0.179 0.018 288.305);
  --accent: oklch(0.73 0.038 24.156);
  --accent-foreground: oklch(0.187 0.013 24.422);
  --destructive: oklch(0.639 0.23 28.026);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.058 147.24);
  --chart-1: oklch(0.769 0.058 147.24);
  --chart-2: oklch(0.708 0.05 288.881);
  --chart-3: oklch(0.73 0.038 24.156);
  --chart-4: oklch(0.736 0.045 289.076);
  --chart-5: oklch(0.773 0.066 147.123);
}