Nu Disco Dark for shadcn/ui

Nu Disco Dark is a shadcn/ui theme built around a vivid pink primary color (#ff80b3) with vivid deep violet accents (#29006b). The light mode uses a violet-tinted background (#0c001f). Dark mode keeps the vivid pink primary (#ff80b3) on a violet-tinted background (#0c001f).

Color palette

TokenLightDark
Background
#0c001fblack
#0c001fblack
Foreground
#f0eff1whitesmoke
#f0eff1whitesmoke
Card
#080014black
#080014black
Card foreground
#fcfcfdwhite
#fcfcfdwhite
Popover
#06000fblack
#06000fblack
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ff80b3hotpink
#ff80b3hotpink
Primary foreground
#4d001fmaroon
#4d001fmaroon
Secondary
#532d3cdarkslategray
#532d3cdarkslategray
Secondary foreground
#e4cdd6gainsboro
#e4cdd6gainsboro
Muted
#25222bdarkslategray
#25222bdarkslategray
Muted foreground
#a39bb0darkgray
#a39bb0darkgray
Accent
#29006bmidnightblue
#29006bmidnightblue
Accent foreground
#c39effplum
#c39effplum
Destructive
#e21308red
#e21308red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#160335black
#160335black
Input
#1c0444midnightblue
#1c0444midnightblue
Ring
#ff80b3hotpink
#ff80b3hotpink

Contrast

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

Light mode
Text on background17.70:1AAA
Text on card20.07:1AAA
Primary button6.71:1AA
Secondary button7.77:1AAA
Muted text5.87:1AA
Accent7.38:1AAA
Destructive4.83:1AA
Dark mode
Text on background17.70:1AAA
Text on card20.07:1AAA
Primary button6.71:1AA
Secondary button7.77:1AAA
Muted text5.87:1AA
Accent7.38:1AAA
Destructive4.83:1AA

CSS variables

Paste this into your globals.css to use Nu Disco Dark in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.13 0.07 298.218);
  --foreground: oklch(0.953 0.003 308.43);
  --muted: oklch(0.258 0.018 302.624);
  --muted-foreground: oklch(0.704 0.032 302.964);
  --popover: oklch(0.097 0.05 304.793);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.057 302.669);
  --card-foreground: oklch(0.992 0 308.456);
  --border: oklch(0.182 0.091 293.423);
  --input: oklch(0.209 0.108 291.785);
  --primary: oklch(0.757 0.163 356.472);
  --primary-foreground: oklch(0.269 0.108 5.407);
  --secondary: oklch(0.35 0.06 355.19);
  --secondary-foreground: oklch(0.871 0.028 351.523);
  --accent: oklch(0.269 0.155 287.449);
  --accent-foreground: oklch(0.77 0.14 300.824);
  --destructive: oklch(0.579 0.231 29.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.163 356.472);
  --chart-1: oklch(0.757 0.163 356.472);
  --chart-2: oklch(0.35 0.06 355.19);
  --chart-3: oklch(0.269 0.155 287.449);
  --chart-4: oklch(0.377 0.066 355.285);
  --chart-5: oklch(0.757 0.168 356.661);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.07 298.218);
  --foreground: oklch(0.953 0.003 308.43);
  --muted: oklch(0.258 0.018 302.624);
  --muted-foreground: oklch(0.704 0.032 302.964);
  --popover: oklch(0.097 0.05 304.793);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.057 302.669);
  --card-foreground: oklch(0.992 0 308.456);
  --border: oklch(0.182 0.091 293.423);
  --input: oklch(0.209 0.108 291.785);
  --primary: oklch(0.757 0.163 356.472);
  --primary-foreground: oklch(0.269 0.108 5.407);
  --secondary: oklch(0.35 0.06 355.19);
  --secondary-foreground: oklch(0.871 0.028 351.523);
  --accent: oklch(0.269 0.155 287.449);
  --accent-foreground: oklch(0.77 0.14 300.824);
  --destructive: oklch(0.579 0.231 29.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.163 356.472);
  --chart-1: oklch(0.757 0.163 356.472);
  --chart-2: oklch(0.35 0.06 355.19);
  --chart-3: oklch(0.269 0.155 287.449);
  --chart-4: oklch(0.377 0.066 355.285);
  --chart-5: oklch(0.757 0.168 356.661);
}