Shadowy for shadcn/ui

Shadowy is a shadcn/ui theme built around a light red primary color (#f8cece) with light indigo accents (#cecef8). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#f8cece) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#030202black
Foreground
#0d0202black
#f9f6f6whitesmoke
Card
#fcf8f8snow
#070303black
Card foreground
#090101black
#fbf9f9snow
Popover
#fefbfbsnow
#030202black
Popover foreground
#0d0202black
#f9f6f6whitesmoke
Primary
#f8cecepink
#f8cecepink
Primary foreground
#811313maroon
#811313maroon
Secondary
#cef8cegainsboro
#cef8cegainsboro
Secondary foreground
#062806black
#062806black
Muted
#f1f4f1whitesmoke
#0b0e0bblack
Muted foreground
#5c665cdimgray
#99a399darkgray
Accent
#cecef8lavender
#cecef8lavender
Accent foreground
#2020d9mediumblue
#2020d9mediumblue
Destructive
#962503saddlebrown
#fb6132tomato
Destructive foreground
#fed8cdbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8cecepink
#f8cecepink

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.55:1AAA
Primary button7.23:1AAA
Secondary button13.63:1AAA
Muted text5.38:1AA
Accent6.09:1AA
Destructive6.20:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.54:1AAA
Primary button7.23:1AAA
Secondary button13.63:1AAA
Muted text7.43:1AAA
Accent6.09:1AA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.199);
  --foreground: oklch(0.114 0.029 22.864);
  --muted: oklch(0.963 0.005 145.536);
  --muted-foreground: oklch(0.498 0.019 145.278);
  --popover: oklch(0.991 0.002 17.199);
  --popover-foreground: oklch(0.114 0.029 22.864);
  --card: oklch(0.981 0.005 17.241);
  --card-foreground: oklch(0.099 0.025 22.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.888 0.047 18.073);
  --primary-foreground: oklch(0.39 0.144 27.133);
  --secondary: oklch(0.938 0.07 144.99);
  --secondary-foreground: oklch(0.243 0.07 143.03);
  --accent: oklch(0.865 0.057 285.142);
  --accent-foreground: oklch(0.427 0.259 268.149);
  --destructive: oklch(0.445 0.153 35.09);
  --destructive-foreground: oklch(0.912 0.045 37.599);
  --ring: oklch(0.888 0.047 18.073);
  --chart-1: oklch(0.888 0.047 18.073);
  --chart-2: oklch(0.938 0.07 144.99);
  --chart-3: oklch(0.865 0.057 285.142);
  --chart-4: oklch(0.954 0.051 145.162);
  --chart-5: oklch(0.886 0.049 18.114);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 19.049);
  --foreground: oklch(0.975 0.004 17.219);
  --muted: oklch(0.16 0.008 145.187);
  --muted-foreground: oklch(0.705 0.018 145.384);
  --popover: oklch(0.086 0.009 19.049);
  --popover-foreground: oklch(0.975 0.004 17.219);
  --card: oklch(0.108 0.011 19.049);
  --card-foreground: oklch(0.983 0.002 17.198);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.888 0.047 18.073);
  --primary-foreground: oklch(0.39 0.144 27.133);
  --secondary: oklch(0.938 0.07 144.99);
  --secondary-foreground: oklch(0.243 0.07 143.03);
  --accent: oklch(0.865 0.057 285.142);
  --accent-foreground: oklch(0.427 0.259 268.149);
  --destructive: oklch(0.685 0.198 36.923);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.888 0.047 18.073);
  --chart-1: oklch(0.888 0.047 18.073);
  --chart-2: oklch(0.938 0.07 144.99);
  --chart-3: oklch(0.865 0.057 285.142);
  --chart-4: oklch(0.954 0.051 145.162);
  --chart-5: oklch(0.886 0.049 18.114);
}