Shrinking Violet Ladybug for shadcn/ui

Shrinking Violet Ladybug is a shadcn/ui theme built around a blue primary color (#5e81ac) with muted green accents (#a3be8c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#5e81ac) on a blue-tinted background (#2e3440).

Color palette

TokenLightDark
Background
#ffffffwhite
#2e3440darkslategray
Foreground
#2e3440darkslategray
#d8dee9gainsboro
Card
#eceff4whitesmoke
#3b4252darkslategray
Card foreground
#3b4252darkslategray
#e5e9f0lavender
Popover
#e5e9f0lavender
#434c5edarkslategray
Popover foreground
#434c5edarkslategray
#eceff4whitesmoke
Primary
#5e81acsteelblue
#5e81acsteelblue
Primary foreground
#ffffffwhite
#d8dee9gainsboro
Secondary
#88c0d0skyblue
#88c0d0skyblue
Secondary foreground
#d8dee9gainsboro
#eceff4whitesmoke
Muted
#4c566adimgray
#4c566adimgray
Muted foreground
#81a1c1darkgray
#81a1c1darkgray
Accent
#a3be8cdarkseagreen
#a3be8cdarkseagreen
Accent foreground
#eceff4whitesmoke
#eceff4whitesmoke
Destructive
#bf616aindianred
#bf616aindianred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#81a1c1darkgray
#434c5edarkslategray
Input
#4c566adimgray
#4c566adimgray
Ring
#b48eaddarkgray
#b48eaddarkgray

Contrast

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

Light mode
Text on background12.48:1AAA
Text on card8.73:1AAA
Primary button4.02:1AA Large
Secondary button1.48:1Fail
Muted text2.74:1Fail
Accent1.76:1Fail
Destructive4.09:1AA Large
Dark mode
Text on background9.24:1AAA
Text on card8.26:1AAA
Primary button2.98:1Fail
Secondary button1.73:1Fail
Muted text2.74:1Fail
Accent1.76:1Fail
Destructive4.09:1AA Large

CSS variables

Paste this into your globals.css to use Shrinking Violet Ladybug in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.324 0.023 264.182);
  --muted: oklch(0.452 0.035 264.131);
  --muted-foreground: oklch(0.697 0.059 248.687);
  --popover: oklch(0.933 0.01 261.786);
  --popover-foreground: oklch(0.416 0.032 264.131);
  --card: oklch(0.951 0.007 260.732);
  --card-foreground: oklch(0.379 0.029 266.472);
  --border: oklch(0.697 0.059 248.687);
  --input: oklch(0.452 0.035 264.131);
  --primary: oklch(0.594 0.077 254.032);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.775 0.062 217.463);
  --secondary-foreground: oklch(0.899 0.016 262.744);
  --accent: oklch(0.768 0.075 131.063);
  --accent-foreground: oklch(0.951 0.007 260.732);
  --destructive: oklch(0.606 0.121 15.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.062 332.663);
  --chart-1: oklch(0.594 0.077 254.032);
  --chart-2: oklch(0.775 0.062 217.463);
  --chart-3: oklch(0.768 0.075 131.063);
  --chart-4: oklch(0.795 0.057 217.293);
  --chart-5: oklch(0.593 0.084 254.105);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.324 0.023 264.182);
  --foreground: oklch(0.899 0.016 262.744);
  --muted: oklch(0.452 0.035 264.131);
  --muted-foreground: oklch(0.697 0.059 248.687);
  --popover: oklch(0.416 0.032 264.131);
  --popover-foreground: oklch(0.951 0.007 260.732);
  --card: oklch(0.379 0.029 266.472);
  --card-foreground: oklch(0.933 0.01 261.786);
  --border: oklch(0.416 0.032 264.131);
  --input: oklch(0.452 0.035 264.131);
  --primary: oklch(0.594 0.077 254.032);
  --primary-foreground: oklch(0.899 0.016 262.744);
  --secondary: oklch(0.775 0.062 217.463);
  --secondary-foreground: oklch(0.951 0.007 260.732);
  --accent: oklch(0.768 0.075 131.063);
  --accent-foreground: oklch(0.951 0.007 260.732);
  --destructive: oklch(0.606 0.121 15.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.062 332.663);
  --chart-1: oklch(0.594 0.077 254.032);
  --chart-2: oklch(0.775 0.062 217.463);
  --chart-3: oklch(0.768 0.075 131.063);
  --chart-4: oklch(0.795 0.057 217.293);
  --chart-5: oklch(0.593 0.084 254.105);
}