Hefty for shadcn/ui

Hefty is a shadcn/ui theme built around a deep pink primary color (#3a1d2e) with deep red accents (#3a1d20). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#3a1d2e) on a pink-tinted background (#0e070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e070bblack
Foreground
#090106black
#fbf9fasnow
Card
#fcfcfcsnow
#11080eblack
Card foreground
#050103black
#fdfcfdwhite
Popover
#ffffffwhite
#0e070bblack
Popover foreground
#090106black
#fbf9fasnow
Primary
#3a1d2edarkslategray
#3a1d2edarkslategray
Primary foreground
#d8b1c8thistle
#d8b1c8thistle
Secondary
#371d3adarkslategray
#371d3adarkslategray
Secondary foreground
#d4b1d8thistle
#d4b1d8thistle
Muted
#efe0f0lavender
#1e0f1fblack
Muted foreground
#5c505edimgray
#aea1afdarkgray
Accent
#3a1d20darkslategray
#3a1d20darkslategray
Accent foreground
#d8b1b5silver
#d8b1b5silver
Destructive
#771104maroon
#f82c12orangered
Destructive foreground
#fdb9b0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3a1d2edarkslategray
#3a1d2edarkslategray

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.30:1AAA
Primary button7.92:1AAA
Secondary button7.92:1AAA
Muted text5.99:1AA
Accent7.91:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.24:1AAA
Primary button7.92:1AAA
Secondary button7.92:1AAA
Muted text7.46:1AAA
Accent7.91:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.103 0.032 340.446);
  --muted: oklch(0.923 0.027 322.744);
  --muted-foreground: oklch(0.448 0.027 322.866);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.103 0.032 340.446);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.081 0.025 340.446);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.277 0.052 344.17);
  --primary-foreground: oklch(0.801 0.054 341.705);
  --secondary: oklch(0.278 0.061 323.384);
  --secondary-foreground: oklch(0.803 0.066 322.944);
  --accent: oklch(0.271 0.045 14.102);
  --accent-foreground: oklch(0.796 0.045 11.376);
  --destructive: oklch(0.367 0.137 31.284);
  --destructive-foreground: oklch(0.845 0.08 27.36);
  --ring: oklch(0.277 0.052 344.17);
  --chart-1: oklch(0.277 0.052 344.17);
  --chart-2: oklch(0.278 0.061 323.384);
  --chart-3: oklch(0.271 0.045 14.102);
  --chart-4: oklch(0.308 0.07 323.403);
  --chart-5: oklch(0.276 0.056 344.522);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 341.678);
  --foreground: oklch(0.983 0.003 340.311);
  --muted: oklch(0.196 0.039 323.326);
  --muted-foreground: oklch(0.725 0.024 322.76);
  --popover: oklch(0.14 0.017 341.678);
  --popover-foreground: oklch(0.983 0.003 340.311);
  --card: oklch(0.152 0.019 342.709);
  --card-foreground: oklch(0.992 0.002 340.272);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.277 0.052 344.17);
  --primary-foreground: oklch(0.801 0.054 341.705);
  --secondary: oklch(0.278 0.061 323.384);
  --secondary-foreground: oklch(0.803 0.066 322.944);
  --accent: oklch(0.271 0.045 14.102);
  --accent-foreground: oklch(0.796 0.045 11.376);
  --destructive: oklch(0.63 0.237 30.899);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.052 344.17);
  --chart-1: oklch(0.277 0.052 344.17);
  --chart-2: oklch(0.278 0.061 323.384);
  --chart-3: oklch(0.271 0.045 14.102);
  --chart-4: oklch(0.308 0.07 323.403);
  --chart-5: oklch(0.276 0.056 344.522);
}