Heart-throb for shadcn/ui

Heart-throb is a shadcn/ui theme built around a neutral gray primary color (#b5b5b5) with muted light red accents (#dec9c9). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#b5b5b5) on a red-tinted background (#0c0303).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0c0303black
Foreground
#120303black
#ffffffwhite
Card
#faf5f5whitesmoke
#100404black
Card foreground
#0d0202black
#ffffffwhite
Popover
#fcf8f8snow
#0c0303black
Popover foreground
#120303black
#ffffffwhite
Primary
#b5b5b5silver
#b5b5b5silver
Primary foreground
#1c1c1cblack
#1c1c1cblack
Secondary
#eee7e7linen
#272525darkslategray
Secondary foreground
#604343darkolivegreen
#c1bdbdsilver
Muted
#e2d4d4gainsboro
#2b1d1dblack
Muted foreground
#5f5353dimgray
#aca0a0darkgray
Accent
#dec9c9lightgrey
#3a3131darkslategray
Accent foreground
#492d2ddarkslategray
#d3cacalightgrey
Destructive
#842a01saddlebrown
#fe7434tomato
Destructive foreground
#ffceb8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5b5b5silver
#b5b5b5silver

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card18.91:1AAA
Primary button8.31:1AAA
Secondary button7.23:1AAA
Muted text5.13:1AA
Accent7.85:1AAA
Destructive6.38:1AA
Dark mode
Text on background20.36:1AAA
Text on card20.13:1AAA
Primary button8.31:1AAA
Secondary button8.17:1AAA
Muted text6.42:1AA
Accent7.86:1AAA
Destructive7.75:1AAA

CSS variables

Paste this into your globals.css to use Heart-throb in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.218);
  --foreground: oklch(0.128 0.033 22.96);
  --muted: oklch(0.882 0.016 17.457);
  --muted-foreground: oklch(0.455 0.017 17.777);
  --popover: oklch(0.982 0.004 17.218);
  --popover-foreground: oklch(0.128 0.033 22.96);
  --card: oklch(0.974 0.005 17.25);
  --card-foreground: oklch(0.114 0.029 22.711);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.773 0 180);
  --primary-foreground: oklch(0.227 0 164.055);
  --secondary: oklch(0.933 0.008 17.299);
  --secondary-foreground: oklch(0.415 0.041 18.951);
  --accent: oklch(0.854 0.023 17.62);
  --accent-foreground: oklch(0.33 0.042 19.543);
  --destructive: oklch(0.418 0.131 39.821);
  --destructive-foreground: oklch(0.889 0.063 46.186);
  --ring: oklch(0.773 0 180);
  --chart-1: oklch(0.773 0 180);
  --chart-2: oklch(0.933 0.008 17.299);
  --chart-3: oklch(0.854 0.023 17.62);
  --chart-4: oklch(0.959 0.005 17.243);
  --chart-5: oklch(0.77 0.005 17.266);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.021 20.72);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.247 0.023 18.812);
  --muted-foreground: oklch(0.715 0.015 17.5);
  --popover: oklch(0.119 0.021 20.72);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.024 20.908);
  --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.773 0 180);
  --primary-foreground: oklch(0.227 0 164.055);
  --secondary: oklch(0.267 0.003 17.37);
  --secondary-foreground: oklch(0.803 0.004 17.247);
  --accent: oklch(0.323 0.014 17.899);
  --accent-foreground: oklch(0.847 0.01 17.348);
  --destructive: oklch(0.715 0.184 42.837);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.773 0 180);
  --chart-1: oklch(0.773 0 180);
  --chart-2: oklch(0.267 0.003 17.37);
  --chart-3: oklch(0.323 0.014 17.899);
  --chart-4: oklch(0.298 0.004 17.38);
  --chart-5: oklch(0.77 0.005 17.266);
}