Popular for shadcn/ui

Popular is a shadcn/ui theme built around a pink primary color (#c43b86) with red accents (#c43b42). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the pink primary (#c43b86) on a pink-tinted background (#0e070b).

Color palette

TokenLightDark
Background
#fdf6fasnow
#0e070bblack
Foreground
#040103black
#faf9fasnow
Card
#fdf6fasnow
#0e070bblack
Card foreground
#040103black
#faf9fasnow
Popover
#fdf6fasnow
#0e070bblack
Popover foreground
#040103black
#faf9fasnow
Primary
#c43b86mediumvioletred
#c43b86mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#bd3bc4mediumorchid
#bd3bc4mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1d5e2gainsboro
#291d2adarkslategray
Muted foreground
#5f4e5fdimgray
#b0a0b1darkgray
Accent
#c43b42brown
#c43b42brown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8d2b01saddlebrown
#fd6321tomato
Destructive foreground
#fed4c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c43b86mediumvioletred
#c43b86mediumvioletred

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button4.85:1AA
Secondary button4.57:1AA
Muted text5.39:1AA
Accent5.18:1AA
Destructive6.18:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button4.85:1AA
Secondary button4.57:1AA
Muted text6.50:1AA
Accent5.18:1AA
Destructive6.96:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 342.843);
  --foreground: oklch(0.084 0.019 342.58);
  --muted: oklch(0.886 0.022 324.272);
  --muted-foreground: oklch(0.447 0.035 324.566);
  --popover: oklch(0.981 0.009 342.843);
  --popover-foreground: oklch(0.084 0.019 342.58);
  --card: oklch(0.981 0.009 342.843);
  --card-foreground: oklch(0.084 0.019 342.58);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.188 350.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.225 325.804);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.174 22.229);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.436 0.14 38.617);
  --destructive-foreground: oklch(0.902 0.053 44.482);
  --ring: oklch(0.574 0.188 350.838);
  --chart-1: oklch(0.574 0.188 350.838);
  --chart-2: oklch(0.594 0.225 325.804);
  --chart-3: oklch(0.556 0.174 22.229);
  --chart-4: oklch(0.613 0.216 325.741);
  --chart-5: oklch(0.577 0.195 351.32);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.017 344.042);
  --foreground: oklch(0.984 0.001 342.651);
  --muted: oklch(0.252 0.03 324.774);
  --muted-foreground: oklch(0.724 0.031 324.374);
  --popover: oklch(0.139 0.017 344.042);
  --popover-foreground: oklch(0.984 0.001 342.651);
  --card: oklch(0.139 0.017 344.042);
  --card-foreground: oklch(0.984 0.001 342.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.574 0.188 350.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.225 325.804);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.174 22.229);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.689 0.201 40.196);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.574 0.188 350.838);
  --chart-1: oklch(0.574 0.188 350.838);
  --chart-2: oklch(0.594 0.225 325.804);
  --chart-3: oklch(0.556 0.174 22.229);
  --chart-4: oklch(0.613 0.216 325.741);
  --chart-5: oklch(0.577 0.195 351.32);
}