Rude for shadcn/ui

Rude is a shadcn/ui theme built around a muted pink primary color (#955f74) with muted teal accents (#5f9581). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#955f74) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0407black
Foreground
#0c0407black
#fdfcfcsnow
Card
#fcfcfcsnow
#0e0609black
Card foreground
#080204black
#ffffffwhite
Popover
#fcfcfcsnow
#0e0609black
Popover foreground
#080204black
#ffffffwhite
Primary
#955f74gray
#955f74gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5f9581slategray
#5f9581slategray
Secondary foreground
#000000black
#000000black
Muted
#e0f1ealavender
#0e1f19black
Muted foreground
#4e5f59dimgray
#a0b1aadarkgray
Accent
#5f9581slategray
#5f9581slategray
Accent foreground
#000000black
#000000black
Destructive
#b74810sienna
#ee763atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#955f74gray
#955f74gray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.13:1AAA
Primary button5.01:1AA
Secondary button6.12:1AA
Muted text5.75:1AA
Accent6.12:1AA
Destructive5.33:1AA
Dark mode
Text on background19.78:1AAA
Text on card20.01:1AAA
Primary button5.01:1AA
Secondary button6.12:1AA
Muted text7.58:1AAA
Accent6.12:1AA
Destructive7.27:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.021 351.46);
  --muted: oklch(0.942 0.02 170.97);
  --muted-foreground: oklch(0.47 0.024 170.047);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.106 0.019 351.225);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 351.225);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.552 0.075 355.241);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.066 168.066);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.066 168.066);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.544 0.157 41.934);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.552 0.075 355.241);
  --chart-1: oklch(0.552 0.075 355.241);
  --chart-2: oklch(0.627 0.066 168.066);
  --chart-3: oklch(0.627 0.066 168.066);
  --chart-4: oklch(0.653 0.067 168.183);
  --chart-5: oklch(0.55 0.085 355.761);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.016 351.382);
  --foreground: oklch(0.991 0.002 351.652);
  --muted: oklch(0.224 0.026 167.495);
  --muted-foreground: oklch(0.745 0.021 170.736);
  --popover: oklch(0.137 0.018 352.776);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.018 352.776);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.552 0.075 355.241);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.627 0.066 168.066);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.066 168.066);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.696 0.165 44.872);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.552 0.075 355.241);
  --chart-1: oklch(0.552 0.075 355.241);
  --chart-2: oklch(0.627 0.066 168.066);
  --chart-3: oklch(0.627 0.066 168.066);
  --chart-4: oklch(0.653 0.067 168.183);
  --chart-5: oklch(0.55 0.085 355.761);
}