Rope for shadcn/ui

Rope is a shadcn/ui theme built around a pink primary color (#dd55b0) with red accents (#dd556b). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the pink primary (#dd55b0) on a neutral background (#080206).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#080206black
Foreground
#040103black
#fdfcfdwhite
Card
#fdf7fbsnow
#080206black
Card foreground
#040103black
#fdfcfdwhite
Popover
#fdf7fbsnow
#080206black
Popover foreground
#040103black
#fdfcfdwhite
Primary
#dd55b0hotpink
#dd55b0hotpink
Primary foreground
#000000black
#000000black
Secondary
#c755ddmediumorchid
#c755ddmediumorchid
Secondary foreground
#000000black
#000000black
Muted
#f4f0f4whitesmoke
#0e0b0fblack
Muted foreground
#644f69dimgray
#ac96b0darkgray
Accent
#dd556bindianred
#dd556bindianred
Accent foreground
#000000black
#000000black
Destructive
#6c2509maroon
#ed6935tomato
Destructive foreground
#f8c4aflightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd55b0hotpink
#dd55b0hotpink

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button5.99:1AA
Secondary button5.75:1AA
Muted text6.50:1AA
Accent5.58:1AA
Destructive7.07:1AAA
Dark mode
Text on background20.06:1AAA
Text on card20.06:1AAA
Primary button5.99:1AA
Secondary button5.75:1AA
Muted text7.22:1AAA
Accent5.58:1AA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 337.455);
  --foreground: oklch(0.086 0.016 337.633);
  --muted: oklch(0.959 0.007 320.543);
  --muted-foreground: oklch(0.459 0.049 320.683);
  --popover: oklch(0.981 0.009 337.455);
  --popover-foreground: oklch(0.086 0.016 337.633);
  --card: oklch(0.981 0.009 337.455);
  --card-foreground: oklch(0.086 0.016 337.633);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.196 343.035);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.218 320.626);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.171 13.404);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.368 0.107 39.42);
  --destructive-foreground: oklch(0.861 0.066 42.621);
  --ring: oklch(0.656 0.196 343.035);
  --chart-1: oklch(0.656 0.196 343.035);
  --chart-2: oklch(0.647 0.218 320.626);
  --chart-3: oklch(0.634 0.171 13.404);
  --chart-4: oklch(0.669 0.204 320.698);
  --chart-5: oklch(0.657 0.203 343.282);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.022 337.664);
  --foreground: oklch(0.992 0.001 337.282);
  --muted: oklch(0.154 0.011 320.636);
  --muted-foreground: oklch(0.701 0.044 320.626);
  --popover: oklch(0.107 0.022 337.664);
  --popover-foreground: oklch(0.992 0.001 337.282);
  --card: oklch(0.107 0.022 337.664);
  --card-foreground: oklch(0.992 0.001 337.282);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.656 0.196 343.035);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.647 0.218 320.626);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.634 0.171 13.404);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.676 0.176 40.611);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.656 0.196 343.035);
  --chart-1: oklch(0.656 0.196 343.035);
  --chart-2: oklch(0.647 0.218 320.626);
  --chart-3: oklch(0.634 0.171 13.404);
  --chart-4: oklch(0.669 0.204 320.698);
  --chart-5: oklch(0.657 0.203 343.282);
}