Heartfelt for shadcn/ui

Heartfelt is a shadcn/ui theme built around a muted blue primary color (#979faf) with muted light blue accents (#b3bdd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#979faf) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#030a16black
#f8f9fcghostwhite
Card
#ffffffwhite
#010204black
Card foreground
#030a16black
#f8f9fcghostwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#030a16black
#f8f9fcghostwhite
Primary
#979fafdarkgray
#979fafdarkgray
Primary foreground
#090a0cblack
#090a0cblack
Secondary
#d6d9e1gainsboro
#111318black
Secondary foreground
#383f4ddarkslategray
#9ea8bddarkgray
Muted
#e0e5f0lavender
#0f141fblack
Muted foreground
#444b5adarkslategray
#a5acbbdarkgray
Accent
#b3bdd0lightsteelblue
#1a202dblack
Accent foreground
#1f2633darkslategray
#abb7cflightsteelblue
Destructive
#7b260asaddlebrown
#ed5421chocolate
Destructive foreground
#faccbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#979fafdarkgray
#979fafdarkgray

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.46:1AAA
Secondary button7.50:1AAA
Muted text6.95:1AA
Accent8.02:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button7.46:1AAA
Secondary button7.77:1AAA
Muted text8.06:1AAA
Accent8.03:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.031 257.82);
  --muted: oklch(0.922 0.015 264.493);
  --muted-foreground: oklch(0.413 0.027 264.227);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.031 257.82);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.142 0.031 257.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.702 0.025 264.402);
  --primary-foreground: oklch(0.143 0.004 263.598);
  --secondary: oklch(0.886 0.011 264.508);
  --secondary-foreground: oklch(0.366 0.026 264.175);
  --accent: oklch(0.797 0.03 264.392);
  --accent-foreground: oklch(0.266 0.026 263.974);
  --destructive: oklch(0.396 0.123 37.058);
  --destructive-foreground: oklch(0.881 0.056 39.256);
  --ring: oklch(0.702 0.025 264.402);
  --chart-1: oklch(0.702 0.025 264.402);
  --chart-2: oklch(0.886 0.011 264.508);
  --chart-3: oklch(0.797 0.03 264.392);
  --chart-4: oklch(0.911 0.009 264.52);
  --chart-5: oklch(0.699 0.031 264.354);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 256.404);
  --foreground: oklch(0.983 0.004 264.54);
  --muted: oklch(0.193 0.023 263.819);
  --muted-foreground: oklch(0.744 0.023 264.427);
  --popover: oklch(0.085 0.011 256.404);
  --popover-foreground: oklch(0.983 0.004 264.54);
  --card: oklch(0.085 0.011 256.404);
  --card-foreground: oklch(0.983 0.004 264.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.702 0.025 264.402);
  --primary-foreground: oklch(0.143 0.004 263.598);
  --secondary: oklch(0.187 0.011 264.251);
  --secondary-foreground: oklch(0.731 0.032 264.355);
  --accent: oklch(0.245 0.026 263.902);
  --accent-foreground: oklch(0.777 0.037 264.336);
  --destructive: oklch(0.647 0.198 37.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.702 0.025 264.402);
  --chart-1: oklch(0.702 0.025 264.402);
  --chart-2: oklch(0.187 0.011 264.251);
  --chart-3: oklch(0.245 0.026 263.902);
  --chart-4: oklch(0.219 0.015 264.197);
  --chart-5: oklch(0.699 0.031 264.354);
}