Rowdy for shadcn/ui

Rowdy is a shadcn/ui theme built around a pink primary color (#b71a70) with green accents (#1ab761). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#b71a70) on a pink-tinted background (#10050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#10050bblack
Foreground
#040103black
#f9f6f8whitesmoke
Card
#ffffffwhite
#10050bblack
Card foreground
#040103black
#f9f6f8whitesmoke
Popover
#ffffffwhite
#10050bblack
Popover foreground
#040103black
#f9f6f8whitesmoke
Primary
#b71a70mediumvioletred
#b71a70mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1ab761mediumseagreen
#1ab761mediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce5e0gainsboro
#1a231eblack
Muted foreground
#37483fdarkslategray
#b7c8besilver
Accent
#1ab761mediumseagreen
#1ab761mediumseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bc3115firebrick
#d83818firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b71a70mediumvioletred
#b71a70mediumvioletred

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button6.18:1AA
Secondary button2.62:1Fail
Muted text7.56:1AAA
Accent2.62:1Fail
Destructive5.85:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button6.18:1AA
Secondary button2.62:1Fail
Muted text9.18:1AAA
Accent2.62:1Fail
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.019 342.58);
  --muted: oklch(0.914 0.013 162.271);
  --muted-foreground: oklch(0.384 0.026 160.811);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.019 342.58);
  --card: oklch(1 0 180);
  --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.519 0.199 354.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.174 152.054);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.685 0.174 152.054);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.527 0.18 32.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.199 354.046);
  --chart-1: oklch(0.519 0.199 354.046);
  --chart-2: oklch(0.685 0.174 152.054);
  --chart-3: oklch(0.685 0.174 152.054);
  --chart-4: oklch(0.722 0.184 151.982);
  --chart-5: oklch(0.524 0.203 354.549);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.027 344.659);
  --foreground: oklch(0.975 0.004 342.717);
  --muted: oklch(0.247 0.017 160.758);
  --muted-foreground: oklch(0.816 0.022 161.935);
  --popover: oklch(0.136 0.027 344.659);
  --popover-foreground: oklch(0.975 0.004 342.717);
  --card: oklch(0.136 0.027 344.659);
  --card-foreground: oklch(0.975 0.004 342.717);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.519 0.199 354.046);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.174 152.054);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.685 0.174 152.054);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.582 0.201 32.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.199 354.046);
  --chart-1: oklch(0.519 0.199 354.046);
  --chart-2: oklch(0.685 0.174 152.054);
  --chart-3: oklch(0.685 0.174 152.054);
  --chart-4: oklch(0.722 0.184 151.982);
  --chart-5: oklch(0.524 0.203 354.549);
}