Shadowy for shadcn/ui

Shadowy is a shadcn/ui theme built around a light purple primary color (#eec9e7) with light green accents (#c9eed0). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the light purple primary (#eec9e7) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#070307black
Foreground
#000000black
#fbf9fbsnow
Card
#fcf3falavenderblush
#0b040ablack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf3falavenderblush
#0b040ablack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#eec9e7gainsboro
#eec9e7gainsboro
Primary foreground
#642058purple
#642058purple
Secondary
#c9eed0gainsboro
#c9eed0gainsboro
Secondary foreground
#07170ablack
#07170ablack
Muted
#ebf4edhoneydew
#0b140cblack
Muted foreground
#48564bdarkslategray
#a9b7abdarkgray
Accent
#c9eed0gainsboro
#c9eed0gainsboro
Accent foreground
#07170ablack
#07170ablack
Destructive
#d20b04red
#f00d05red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eec9e7gainsboro
#eec9e7gainsboro

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.30:1AAA
Primary button7.48:1AAA
Secondary button14.58:1AAA
Muted text6.91:1AA
Accent14.58:1AAA
Destructive5.54:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.79:1AAA
Primary button7.48:1AAA
Secondary button14.58:1AAA
Muted text8.98:1AAA
Accent14.58:1AAA
Destructive4.41: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.982 0.01 331.545);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.013 151.206);
  --muted-foreground: oklch(0.438 0.026 150.523);
  --popover: oklch(0.973 0.014 331.615);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.014 331.615);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.057 332.293);
  --primary-foreground: oklch(0.371 0.12 335.694);
  --secondary: oklch(0.914 0.055 150.504);
  --secondary-foreground: oklch(0.187 0.034 148.64);
  --accent: oklch(0.914 0.055 150.504);
  --accent-foreground: oklch(0.187 0.034 148.64);
  --destructive: oklch(0.545 0.22 29.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.057 332.293);
  --chart-1: oklch(0.876 0.057 332.293);
  --chart-2: oklch(0.914 0.055 150.504);
  --chart-3: oklch(0.914 0.055 150.504);
  --chart-4: oklch(0.932 0.043 150.721);
  --chart-5: oklch(0.875 0.06 332.344);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.019 332.219);
  --foreground: oklch(0.984 0.003 331.449);
  --muted: oklch(0.178 0.02 149.658);
  --muted-foreground: oklch(0.765 0.023 150.975);
  --popover: oklch(0.125 0.022 332.374);
  --popover-foreground: oklch(0.992 0.001 331.428);
  --card: oklch(0.125 0.022 332.374);
  --card-foreground: oklch(0.992 0.001 331.428);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.876 0.057 332.293);
  --primary-foreground: oklch(0.371 0.12 335.694);
  --secondary: oklch(0.914 0.055 150.504);
  --secondary-foreground: oklch(0.187 0.034 148.64);
  --accent: oklch(0.914 0.055 150.504);
  --accent-foreground: oklch(0.187 0.034 148.64);
  --destructive: oklch(0.602 0.244 29.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.057 332.293);
  --chart-1: oklch(0.876 0.057 332.293);
  --chart-2: oklch(0.914 0.055 150.504);
  --chart-3: oklch(0.914 0.055 150.504);
  --chart-4: oklch(0.932 0.043 150.721);
  --chart-5: oklch(0.875 0.06 332.344);
}