Music-box for shadcn/ui

Music-box is a shadcn/ui theme built around a vivid deep pink primary color (#420525) with vivid deep blue accents (#052542). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#420525) on a pink-tinted background (#0f050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050ablack
Foreground
#0c0408black
#fdfcfcsnow
Card
#ffffffwhite
#0f050ablack
Card foreground
#0c0408black
#fdfcfcsnow
Popover
#ffffffwhite
#0f050ablack
Popover foreground
#0c0408black
#fdfcfcsnow
Primary
#420525maroon
#420525maroon
Primary foreground
#f584bfhotpink
#f584bfhotpink
Secondary
#254205darkgreen
#254205darkgreen
Secondary foreground
#8ded26yellowgreen
#8ded26yellowgreen
Muted
#e8efe1beige
#171e10black
Muted foreground
#595c57dimgray
#a6a8a3darkgray
Accent
#052542midnightblue
#052542midnightblue
Accent foreground
#84bff5lightskyblue
#84bff5lightskyblue
Destructive
#d63605orangered
#f9521forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#420525maroon
#420525maroon

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.97:1AA
Secondary button7.67:1AAA
Muted text5.76:1AA
Accent7.98:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button6.97:1AA
Secondary button7.67:1AAA
Muted text7.13:1AAA
Accent7.98:1AAA
Destructive3.35:1AA Large

CSS variables

Paste this into your globals.css to use Music-box in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.022 344.4);
  --muted: oklch(0.943 0.019 128.026);
  --muted-foreground: oklch(0.47 0.009 128.017);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.022 344.4);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.022 344.4);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.254 0.095 355.113);
  --primary-foreground: oklch(0.755 0.152 349.088);
  --secondary: oklch(0.343 0.091 132.892);
  --secondary-foreground: oklch(0.854 0.233 133.402);
  --accent: oklch(0.259 0.066 250.596);
  --accent-foreground: oklch(0.784 0.099 247.557);
  --destructive: oklch(0.576 0.202 34.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.095 355.113);
  --chart-1: oklch(0.254 0.095 355.113);
  --chart-2: oklch(0.343 0.091 132.892);
  --chart-3: oklch(0.259 0.066 250.596);
  --chart-4: oklch(0.39 0.106 133.233);
  --chart-5: oklch(0.255 0.097 355.465);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.024 346.084);
  --foreground: oklch(0.992 0.002 344.336);
  --muted: oklch(0.222 0.026 129.31);
  --muted-foreground: oklch(0.729 0.008 127.92);
  --popover: oklch(0.136 0.024 346.084);
  --popover-foreground: oklch(0.992 0.002 344.336);
  --card: oklch(0.136 0.024 346.084);
  --card-foreground: oklch(0.992 0.002 344.336);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.254 0.095 355.113);
  --primary-foreground: oklch(0.755 0.152 349.088);
  --secondary: oklch(0.343 0.091 132.892);
  --secondary-foreground: oklch(0.854 0.233 133.402);
  --accent: oklch(0.259 0.066 250.596);
  --accent-foreground: oklch(0.784 0.099 247.557);
  --destructive: oklch(0.665 0.212 36.077);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.254 0.095 355.113);
  --chart-1: oklch(0.254 0.095 355.113);
  --chart-2: oklch(0.343 0.091 132.892);
  --chart-3: oklch(0.259 0.066 250.596);
  --chart-4: oklch(0.39 0.106 133.233);
  --chart-5: oklch(0.255 0.097 355.465);
}