Worn for shadcn/ui

Worn is a shadcn/ui theme built around a pink primary color (#862841) with red accents (#863e28). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#862841) on a pink-tinted background (#100508).

Color palette

TokenLightDark
Background
#fefbfcsnow
#100508black
Foreground
#050102black
#ffffffwhite
Card
#fefbfcsnow
#100508black
Card foreground
#050102black
#ffffffwhite
Popover
#fefbfcsnow
#100508black
Popover foreground
#050102black
#ffffffwhite
Primary
#862841brown
#862841brown
Primary foreground
#f8e7eclinen
#f8e7eclinen
Secondary
#862870purple
#862870purple
Secondary foreground
#f8e7f4lavenderblush
#f8e7f4lavenderblush
Muted
#f2e8f0whitesmoke
#170d15black
Muted foreground
#514d50darkslategray
#b2aeb1darkgray
Accent
#863e28saddlebrown
#863e28saddlebrown
Accent foreground
#f8ebe7linen
#f8ebe7linen
Destructive
#c0210cfirebrick
#f03219orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#862841brown
#862841brown

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button7.39:1AAA
Secondary button6.97:1AA
Muted text6.95:1AA
Accent6.62:1AA
Destructive6.06:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.39:1AAA
Secondary button6.97:1AA
Muted text8.68:1AAA
Accent6.62:1AA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 358.882);
  --foreground: oklch(0.08 0.022 358.534);
  --muted: oklch(0.941 0.015 333.502);
  --muted-foreground: oklch(0.425 0.009 333.563);
  --popover: oklch(0.99 0.003 358.882);
  --popover-foreground: oklch(0.08 0.022 358.534);
  --card: oklch(0.99 0.003 358.882);
  --card-foreground: oklch(0.08 0.022 358.534);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.427 0.128 8.394);
  --primary-foreground: oklch(0.944 0.019 359.347);
  --secondary: oklch(0.445 0.151 338.53);
  --secondary-foreground: oklch(0.946 0.024 333.652);
  --accent: oklch(0.452 0.105 37.601);
  --accent-foreground: oklch(0.95 0.015 37.673);
  --destructive: oklch(0.52 0.195 30.932);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.427 0.128 8.394);
  --chart-1: oklch(0.427 0.128 8.394);
  --chart-2: oklch(0.445 0.151 338.53);
  --chart-3: oklch(0.452 0.105 37.601);
  --chart-4: oklch(0.473 0.162 338.583);
  --chart-5: oklch(0.428 0.134 9.053);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.024 0.157);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.023 335.244);
  --muted-foreground: oklch(0.754 0.007 333.399);
  --popover: oklch(0.134 0.024 0.157);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.024 0.157);
  --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.427 0.128 8.394);
  --primary-foreground: oklch(0.944 0.019 359.347);
  --secondary: oklch(0.445 0.151 338.53);
  --secondary-foreground: oklch(0.946 0.024 333.652);
  --accent: oklch(0.452 0.105 37.601);
  --accent-foreground: oklch(0.95 0.015 37.673);
  --destructive: oklch(0.62 0.227 31.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.427 0.128 8.394);
  --chart-1: oklch(0.427 0.128 8.394);
  --chart-2: oklch(0.445 0.151 338.53);
  --chart-3: oklch(0.452 0.105 37.601);
  --chart-4: oklch(0.473 0.162 338.583);
  --chart-5: oklch(0.428 0.134 9.053);
}