Dancing for shadcn/ui

Dancing is a shadcn/ui theme built around a pink primary color (#9e2e6c) with green accents (#2e9e60). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the pink primary (#9e2e6c) on a neutral background (#070305).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#070305black
Foreground
#11030bblack
#fbf8fasnow
Card
#fbf8fasnow
#0a0508black
Card foreground
#0d0208black
#fdfcfdwhite
Popover
#fbf8fasnow
#0a0508black
Popover foreground
#0d0208black
#fdfcfdwhite
Primary
#9e2e6cmediumvioletred
#9e2e6cmediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e9e60seagreen
#2e9e60seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0e7dagainsboro
#182f23darkslategray
Muted foreground
#4a5e53darkslategray
#a1b5aadarkgray
Accent
#2e9e60seagreen
#2e9e60seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b00d07firebrick
#f51b14red
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9e2e6cmediumvioletred
#9e2e6cmediumvioletred

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.39:1AAA
Primary button6.86:1AA
Secondary button3.39:1AA Large
Muted text5.33:1AA
Accent3.39:1AA Large
Destructive6.32:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.76:1AAA
Primary button6.86:1AA
Secondary button3.39:1AA Large
Muted text6.59:1AA
Accent3.39:1AA Large
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 342.668);
  --foreground: oklch(0.133 0.036 345.143);
  --muted: oklch(0.907 0.03 161.79);
  --muted-foreground: oklch(0.462 0.03 160.874);
  --popover: oklch(0.983 0.004 342.719);
  --popover-foreground: oklch(0.119 0.032 343.185);
  --card: oklch(0.983 0.004 342.719);
  --card-foreground: oklch(0.119 0.032 343.185);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.49 0.159 350.785);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.622 0.136 154.61);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.622 0.136 154.61);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.48 0.191 29.24);
  --destructive-foreground: oklch(0.957 0.02 19.901);
  --ring: oklch(0.49 0.159 350.785);
  --chart-1: oklch(0.49 0.159 350.785);
  --chart-2: oklch(0.622 0.136 154.61);
  --chart-3: oklch(0.622 0.136 154.61);
  --chart-4: oklch(0.656 0.145 154.548);
  --chart-5: oklch(0.492 0.166 351.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.012 342.598);
  --foreground: oklch(0.983 0.004 342.716);
  --muted: oklch(0.282 0.037 158.722);
  --muted-foreground: oklch(0.754 0.027 161.694);
  --popover: oklch(0.126 0.014 342.599);
  --popover-foreground: oklch(0.992 0.002 342.667);
  --card: oklch(0.126 0.014 342.599);
  --card-foreground: oklch(0.992 0.002 342.667);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.49 0.159 350.785);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.622 0.136 154.61);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.622 0.136 154.61);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.617 0.243 29.109);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.49 0.159 350.785);
  --chart-1: oklch(0.49 0.159 350.785);
  --chart-2: oklch(0.622 0.136 154.61);
  --chart-3: oklch(0.622 0.136 154.61);
  --chart-4: oklch(0.656 0.145 154.548);
  --chart-5: oklch(0.492 0.166 351.255);
}