Heartfelt for shadcn/ui

Heartfelt is a shadcn/ui theme built around a neutral gray primary color (#d0d0d2) with neutral gray accents (#d0d2d0). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#d0d0d2) on a blue-tinted background (#06070e).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06070eblack
Foreground
#050814black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#080912black
Card foreground
#040610black
#ffffffwhite
Popover
#f8f8fcghostwhite
#080912black
Popover foreground
#040610black
#ffffffwhite
Primary
#d0d0d2lightgrey
#d0d0d2lightgrey
Primary foreground
#36373adarkslategray
#36373adarkslategray
Secondary
#d2d0d0lightgrey
#d2d0d0lightgrey
Secondary foreground
#3a3637darkslategray
#3a3637darkslategray
Muted
#ebe5e6linen
#1a1415black
Muted foreground
#5f4f51dimgray
#b0a0a3darkgray
Accent
#d0d2d0lightgrey
#d0d2d0lightgrey
Accent foreground
#373a36darkslategray
#373a36darkslategray
Destructive
#ac1802firebrick
#fd3112orangered
Destructive foreground
#ffe5e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0d0d2lightgrey
#d0d0d2lightgrey

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.11:1AAA
Primary button7.73:1AAA
Secondary button7.75:1AAA
Muted text6.19:1AA
Accent7.61:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.83:1AAA
Primary button7.73:1AAA
Secondary button7.75:1AAA
Muted text7.28:1AAA
Accent7.61:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 278.281);
  --foreground: oklch(0.137 0.028 272.703);
  --muted: oklch(0.927 0.007 6.788);
  --muted-foreground: oklch(0.444 0.021 7.783);
  --popover: oklch(0.981 0.005 278.242);
  --popover-foreground: oklch(0.127 0.024 272.193);
  --card: oklch(0.981 0.005 278.242);
  --card-foreground: oklch(0.127 0.024 272.193);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.858 0.003 278.263);
  --primary-foreground: oklch(0.337 0.005 278.099);
  --secondary: oklch(0.859 0.003 6.686);
  --secondary-foreground: oklch(0.338 0.005 6.951);
  --accent: oklch(0.863 0.005 141.054);
  --accent-foreground: oklch(0.344 0.007 141.021);
  --destructive: oklch(0.476 0.183 31.315);
  --destructive-foreground: oklch(0.941 0.029 28.12);
  --ring: oklch(0.858 0.003 278.263);
  --chart-1: oklch(0.858 0.003 278.263);
  --chart-2: oklch(0.859 0.003 6.686);
  --chart-3: oklch(0.863 0.005 141.054);
  --chart-4: oklch(0.883 0.003 6.668);
  --chart-5: oklch(0.856 0.006 278.208);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.016 274.747);
  --foreground: oklch(0.992 0.001 278.305);
  --muted: oklch(0.198 0.011 7.936);
  --muted-foreground: oklch(0.721 0.019 7.237);
  --popover: oklch(0.144 0.019 275.371);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.019 275.371);
  --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.858 0.003 278.263);
  --primary-foreground: oklch(0.337 0.005 278.099);
  --secondary: oklch(0.859 0.003 6.686);
  --secondary-foreground: oklch(0.338 0.005 6.951);
  --accent: oklch(0.863 0.005 141.054);
  --accent-foreground: oklch(0.344 0.007 141.021);
  --destructive: oklch(0.641 0.239 31.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.003 278.263);
  --chart-1: oklch(0.858 0.003 278.263);
  --chart-2: oklch(0.859 0.003 6.686);
  --chart-3: oklch(0.863 0.005 141.054);
  --chart-4: oklch(0.883 0.003 6.668);
  --chart-5: oklch(0.856 0.006 278.208);
}