Shadowy for shadcn/ui

Shadowy is a shadcn/ui theme built around a muted blue primary color (#5f6377) with muted yellow accents (#77735f). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted blue primary (#5f6377) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#010209black
#f6f6f9whitesmoke
Card
#fbfbfeghostwhite
#000000black
Card foreground
#010209black
#f6f6f9whitesmoke
Popover
#fbfbfeghostwhite
#000000black
Popover foreground
#010209black
#f6f6f9whitesmoke
Primary
#5f6377dimgray
#5f6377dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#77735fdimgray
#77735fdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3f0e2beige
#1d1a0cblack
Muted foreground
#4a4945darkslategray
#babab5silver
Accent
#77735fdimgray
#77735fdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#dc2c09orangered
#f53a14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5f6377dimgray
#5f6377dimgray

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button5.94:1AA
Secondary button4.75:1AA
Muted text7.89:1AAA
Accent4.75:1AA
Destructive4.74:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.94:1AA
Secondary button4.75:1AA
Muted text8.94:1AAA
Accent4.75:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 278.267);
  --foreground: oklch(0.092 0.026 266.797);
  --muted: oklch(0.954 0.019 98.584);
  --muted-foreground: oklch(0.406 0.008 98.589);
  --popover: oklch(0.99 0.003 278.267);
  --popover-foreground: oklch(0.092 0.026 266.797);
  --card: oklch(0.99 0.003 278.267);
  --card-foreground: oklch(0.092 0.026 266.797);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.503 0.032 277.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.554 0.03 99.005);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.554 0.03 99.005);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.214 32.18);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.032 277.311);
  --chart-1: oklch(0.503 0.032 277.311);
  --chart-2: oklch(0.554 0.03 99.005);
  --chart-3: oklch(0.554 0.03 99.005);
  --chart-4: oklch(0.582 0.032 99.009);
  --chart-5: oklch(0.497 0.041 276.98);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 278.276);
  --muted: oklch(0.217 0.025 99.474);
  --muted-foreground: oklch(0.787 0.007 98.439);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 278.276);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.003 278.276);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.503 0.032 277.311);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.554 0.03 99.005);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.554 0.03 99.005);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.227 32.557);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.032 277.311);
  --chart-1: oklch(0.503 0.032 277.311);
  --chart-2: oklch(0.554 0.03 99.005);
  --chart-3: oklch(0.554 0.03 99.005);
  --chart-4: oklch(0.582 0.032 99.009);
  --chart-5: oklch(0.497 0.041 276.98);
}