Loud for shadcn/ui

Loud is a shadcn/ui theme built around a neutral gray primary color (#c5c2be) with neutral gray accents (#c5c5be). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the neutral gray primary (#c5c2be) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfaf7snow
#040301black
Foreground
#040301black
#fdfcfcsnow
Card
#fdfaf7snow
#040301black
Card foreground
#040301black
#fdfcfcsnow
Popover
#fdfaf7snow
#040301black
Popover foreground
#040301black
#fdfcfcsnow
Primary
#c5c2besilver
#c5c2besilver
Primary foreground
#2b2926darkslategray
#2b2926darkslategray
Secondary
#c5bfbesilver
#c5bfbesilver
Secondary foreground
#2b2726darkslategray
#2b2726darkslategray
Muted
#ece9e9linen
#161313black
Muted foreground
#594746darkolivegreen
#b9a8a6darkgray
Accent
#c5c5besilver
#c5c5besilver
Accent foreground
#2b2b26darkslategray
#2b2b26darkslategray
Destructive
#c72c05firebrick
#f9471aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5c2besilver
#c5c2besilver

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button8.20:1AAA
Secondary button8.12:1AAA
Muted text7.21:1AAA
Accent8.22:1AAA
Destructive5.54:1AA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button8.20:1AAA
Secondary button8.12:1AAA
Muted text8.10:1AAA
Accent8.22:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 74.925);
  --foreground: oklch(0.097 0.014 84.338);
  --muted: oklch(0.937 0.003 22.254);
  --muted-foreground: oklch(0.415 0.024 22.963);
  --popover: oklch(0.987 0.005 74.925);
  --popover-foreground: oklch(0.097 0.014 84.338);
  --card: oklch(0.987 0.005 74.925);
  --card-foreground: oklch(0.097 0.014 84.338);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.816 0.007 74.903);
  --primary-foreground: oklch(0.283 0.006 74.816);
  --secondary: oklch(0.809 0.008 22.323);
  --secondary-foreground: oklch(0.276 0.007 22.505);
  --accent: oklch(0.822 0.01 109.707);
  --accent-foreground: oklch(0.288 0.009 110.036);
  --destructive: oklch(0.541 0.195 33.258);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.816 0.007 74.903);
  --chart-1: oklch(0.816 0.007 74.903);
  --chart-2: oklch(0.809 0.008 22.323);
  --chart-3: oklch(0.822 0.01 109.707);
  --chart-4: oklch(0.833 0.007 22.305);
  --chart-5: oklch(0.818 0.01 74.876);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 81.851);
  --foreground: oklch(0.993 0 74.95);
  --muted: oklch(0.19 0.005 22.525);
  --muted-foreground: oklch(0.746 0.021 22.544);
  --popover: oklch(0.096 0.01 81.851);
  --popover-foreground: oklch(0.993 0 74.95);
  --card: oklch(0.096 0.01 81.851);
  --card-foreground: oklch(0.993 0 74.95);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.816 0.007 74.903);
  --primary-foreground: oklch(0.283 0.006 74.816);
  --secondary: oklch(0.809 0.008 22.323);
  --secondary-foreground: oklch(0.276 0.007 22.505);
  --accent: oklch(0.822 0.01 109.707);
  --accent-foreground: oklch(0.288 0.009 110.036);
  --destructive: oklch(0.653 0.221 34.167);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.816 0.007 74.903);
  --chart-1: oklch(0.816 0.007 74.903);
  --chart-2: oklch(0.809 0.008 22.323);
  --chart-3: oklch(0.822 0.01 109.707);
  --chart-4: oklch(0.833 0.007 22.305);
  --chart-5: oklch(0.818 0.01 74.876);
}