Shadowy for shadcn/ui

Shadowy is a shadcn/ui theme built around a muted light green primary color (#dadfce) with muted light violet accents (#d2cedf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#dadfce) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#060802black
#fafbf9snow
Card
#ffffffwhite
#000000black
Card foreground
#060802black
#fafbf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#060802black
#fafbf9snow
Primary
#dadfcegainsboro
#dadfcegainsboro
Primary foreground
#434a30darkslategray
#434a30darkslategray
Secondary
#d2cedflightgrey
#d2cedflightgrey
Secondary foreground
#38304adarkslategray
#38304adarkslategray
Muted
#ebe7f3lavender
#0f0c18black
Muted foreground
#5e5969dimgray
#9b96a6darkgray
Accent
#d2cedflightgrey
#d2cedflightgrey
Accent foreground
#38304adarkslategray
#38304adarkslategray
Destructive
#cf500cchocolate
#e75a0dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dadfcegainsboro
#dadfcegainsboro

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button6.80:1AA
Secondary button8.05:1AAA
Muted text5.56:1AA
Accent8.05:1AAA
Destructive4.35:1AA Large
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.80:1AA
Secondary button8.05:1AAA
Muted text6.72:1AA
Accent8.05:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.021 119.275);
  --muted: oklch(0.935 0.016 299.017);
  --muted-foreground: oklch(0.474 0.025 298.387);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.021 119.275);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.021 119.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.895 0.024 119.758);
  --primary-foreground: oklch(0.395 0.042 121.203);
  --secondary: oklch(0.859 0.024 298.824);
  --secondary-foreground: oklch(0.33 0.046 296.846);
  --accent: oklch(0.859 0.024 298.824);
  --accent-foreground: oklch(0.33 0.046 296.846);
  --destructive: oklch(0.594 0.174 42.097);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.024 119.758);
  --chart-1: oklch(0.895 0.024 119.758);
  --chart-2: oklch(0.859 0.024 298.824);
  --chart-3: oklch(0.859 0.024 298.824);
  --chart-4: oklch(0.886 0.019 298.929);
  --chart-5: oklch(0.897 0.027 119.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 119.359);
  --muted: oklch(0.165 0.024 296.705);
  --muted-foreground: oklch(0.683 0.023 298.725);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 119.359);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.003 119.359);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.895 0.024 119.758);
  --primary-foreground: oklch(0.395 0.042 121.203);
  --secondary: oklch(0.859 0.024 298.824);
  --secondary-foreground: oklch(0.33 0.046 296.846);
  --accent: oklch(0.859 0.024 298.824);
  --accent-foreground: oklch(0.33 0.046 296.846);
  --destructive: oklch(0.644 0.19 41.9);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.024 119.758);
  --chart-1: oklch(0.895 0.024 119.758);
  --chart-2: oklch(0.859 0.024 298.824);
  --chart-3: oklch(0.859 0.024 298.824);
  --chart-4: oklch(0.886 0.019 298.929);
  --chart-5: oklch(0.897 0.027 119.82);
}