Ladybug for shadcn/ui

Ladybug is a shadcn/ui theme built around a vivid deep pink primary color (#890659) with vivid deep green accents (#068936). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid deep pink primary (#890659) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#fcf8fasnow
#080206black
Foreground
#10050cblack
#fdfcfdwhite
Card
#fbf4f8lavenderblush
#0c0409black
Card foreground
#0c0409black
#ffffffwhite
Popover
#fcf8fasnow
#080206black
Popover foreground
#10050cblack
#fdfcfdwhite
Primary
#890659purple
#890659purple
Primary foreground
#fdc4e8pink
#fdc4e8pink
Secondary
#068936forestgreen
#068936forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0f1e6honeydew
#0e1f15black
Muted foreground
#46584ddarkslategray
#a7b9aedarkgray
Accent
#068936forestgreen
#068936forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb180bfirebrick
#f54538tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#890659purple
#890659purple

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.70:1AAA
Primary button6.37:1AA
Secondary button4.52:1AA
Muted text6.44:1AA
Accent4.52:1AA
Destructive5.69:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.30:1AAA
Primary button6.37:1AA
Secondary button4.52:1AA
Muted text8.28:1AAA
Accent4.52:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 338.848);
  --foreground: oklch(0.136 0.027 340.865);
  --muted: oklch(0.941 0.023 158.182);
  --muted-foreground: oklch(0.441 0.028 157.26);
  --popover: oklch(0.982 0.006 338.848);
  --popover-foreground: oklch(0.136 0.027 340.865);
  --card: oklch(0.974 0.009 338.915);
  --card-foreground: oklch(0.123 0.024 339.255);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.418 0.17 350.176);
  --primary-foreground: oklch(0.881 0.079 340.531);
  --secondary: oklch(0.55 0.158 147.989);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.55 0.158 147.989);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.537 0.21 29.754);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.17 350.176);
  --chart-1: oklch(0.418 0.17 350.176);
  --chart-2: oklch(0.55 0.158 147.989);
  --chart-3: oklch(0.55 0.158 147.989);
  --chart-4: oklch(0.593 0.17 147.853);
  --chart-5: oklch(0.421 0.173 350.535);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.021 338.979);
  --foreground: oklch(0.992 0.002 338.76);
  --muted: oklch(0.222 0.031 155.132);
  --muted-foreground: oklch(0.768 0.025 158.006);
  --popover: oklch(0.107 0.021 338.979);
  --popover-foreground: oklch(0.992 0.002 338.76);
  --card: oklch(0.123 0.024 339.255);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.418 0.17 350.176);
  --primary-foreground: oklch(0.881 0.079 340.531);
  --secondary: oklch(0.55 0.158 147.989);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.55 0.158 147.989);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.646 0.214 28.64);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.17 350.176);
  --chart-1: oklch(0.418 0.17 350.176);
  --chart-2: oklch(0.55 0.158 147.989);
  --chart-3: oklch(0.55 0.158 147.989);
  --chart-4: oklch(0.593 0.17 147.853);
  --chart-5: oklch(0.421 0.173 350.535);
}