Silent for shadcn/ui

Silent is a shadcn/ui theme built around a vivid light orange primary color (#fff6e6) with vivid light green accents (#fbffe6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light orange primary (#fff6e6) on an orange-tinted background (#0a0805).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0805black
Foreground
#090601black
#fcfaf8snow
Card
#fcfcfcsnow
#0e0b07black
Card foreground
#050301black
#fdfdfcwhite
Popover
#ffffffwhite
#0a0805black
Popover foreground
#090601black
#fcfaf8snow
Primary
#fff6e6oldlace
#fff6e6oldlace
Primary foreground
#4c3001saddlebrown
#4c3001saddlebrown
Secondary
#ffe9e6mistyrose
#ffe9e6mistyrose
Secondary foreground
#b11902firebrick
#b11902firebrick
Muted
#e4d5d3gainsboro
#2c1d1bblack
Muted foreground
#594846darkolivegreen
#b9a9a6darkgray
Accent
#fbffe6lightyellow
#fbffe6lightyellow
Accent foreground
#424c01darkolivegreen
#424c01darkolivegreen
Destructive
#800505maroon
#f61313red
Destructive foreground
#fdbabalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fff6e6oldlace
#fff6e6oldlace

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.14:1AAA
Primary button11.27:1AAA
Secondary button5.99:1AA
Muted text6.04:1AA
Accent9.05:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.28:1AAA
Primary button11.27:1AAA
Secondary button5.99:1AA
Muted text7.12:1AAA
Accent9.05:1AAA
Destructive4.17:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.02 90.319);
  --muted: oklch(0.884 0.017 28.038);
  --muted-foreground: oklch(0.418 0.023 28.312);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.02 90.319);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.016 90.319);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.023 81.488);
  --primary-foreground: oklch(0.335 0.07 74.311);
  --secondary: oklch(0.951 0.024 28.08);
  --secondary-foreground: oklch(0.487 0.187 31.277);
  --accent: oklch(0.99 0.033 113.161);
  --accent-foreground: oklch(0.393 0.091 118.048);
  --destructive: oklch(0.379 0.152 28.717);
  --destructive-foreground: oklch(0.85 0.077 18.794);
  --ring: oklch(0.975 0.023 81.488);
  --chart-1: oklch(0.975 0.023 81.488);
  --chart-2: oklch(0.951 0.024 28.08);
  --chart-3: oklch(0.99 0.033 113.161);
  --chart-4: oklch(0.98 0.009 27.983);
  --chart-5: oklch(0.975 0.024 81.487);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.01 85.673);
  --foreground: oklch(0.986 0.003 81.514);
  --muted: oklch(0.25 0.024 28.723);
  --muted-foreground: oklch(0.748 0.019 28.085);
  --popover: oklch(0.137 0.01 85.673);
  --popover-foreground: oklch(0.986 0.003 81.514);
  --card: oklch(0.152 0.011 83.159);
  --card-foreground: oklch(0.993 0.002 81.514);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.023 81.488);
  --primary-foreground: oklch(0.335 0.07 74.311);
  --secondary: oklch(0.951 0.024 28.08);
  --secondary-foreground: oklch(0.487 0.187 31.277);
  --accent: oklch(0.99 0.033 113.161);
  --accent-foreground: oklch(0.393 0.091 118.048);
  --destructive: oklch(0.616 0.247 28.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.023 81.488);
  --chart-1: oklch(0.975 0.023 81.488);
  --chart-2: oklch(0.951 0.024 28.08);
  --chart-3: oklch(0.99 0.033 113.161);
  --chart-4: oklch(0.98 0.009 27.983);
  --chart-5: oklch(0.975 0.024 81.487);
}