Heartfelt for shadcn/ui

Heartfelt is a shadcn/ui theme built around a light purple primary color (#e9c7eb) with light pink accents (#ebc7db). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e9c7eb) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060eblack
Foreground
#080208black
#f9f6f9whitesmoke
Card
#fcfcfcsnow
#110812black
Card foreground
#040104black
#fbf9fbsnow
Popover
#ffffffwhite
#0e060eblack
Popover foreground
#080208black
#f9f6f9whitesmoke
Primary
#e9c7ebthistle
#e9c7ebthistle
Primary foreground
#5b225eindigo
#5b225eindigo
Secondary
#d7c7ebthistle
#d7c7ebthistle
Secondary foreground
#3d225emidnightblue
#3d225emidnightblue
Muted
#e2dde9gainsboro
#1b1622black
Muted foreground
#4e4757darkslategray
#afa8b8darkgray
Accent
#ebc7dbthistle
#ebc7dbthistle
Accent foreground
#5e2243darkslategray
#5e2243darkslategray
Destructive
#8f0e00darkred
#ff270forangered
Destructive foreground
#ffc8c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e9c7ebthistle
#e9c7ebthistle

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.31:1AAA
Primary button7.52:1AAA
Secondary button8.32:1AAA
Muted text6.66:1AA
Accent7.66:1AAA
Destructive6.41:1AA
Dark mode
Text on background18.61:1AAA
Text on card18.79:1AAA
Primary button7.52:1AAA
Secondary button8.32:1AAA
Muted text7.69:1AAA
Accent7.66:1AAA
Destructive3.78: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.107 0.027 325.941);
  --muted: oklch(0.905 0.018 306.179);
  --muted-foreground: oklch(0.411 0.027 305.575);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.107 0.027 325.941);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.022 325.941);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0.061 324.526);
  --primary-foreground: oklch(0.361 0.117 325.656);
  --secondary: oklch(0.854 0.052 305.649);
  --secondary-foreground: oklch(0.319 0.103 301.525);
  --accent: oklch(0.865 0.048 343.928);
  --accent-foreground: oklch(0.352 0.096 349.075);
  --destructive: oklch(0.414 0.162 30.895);
  --destructive-foreground: oklch(0.88 0.064 25.746);
  --ring: oklch(0.869 0.061 324.526);
  --chart-1: oklch(0.869 0.061 324.526);
  --chart-2: oklch(0.854 0.052 305.649);
  --chart-3: oklch(0.865 0.048 343.928);
  --chart-4: oklch(0.883 0.041 305.831);
  --chart-5: oklch(0.868 0.065 324.551);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.023 325.123);
  --foreground: oklch(0.976 0.006 324.163);
  --muted: oklch(0.212 0.025 304.895);
  --muted-foreground: oklch(0.743 0.024 306.02);
  --popover: oklch(0.14 0.023 325.123);
  --popover-foreground: oklch(0.976 0.006 324.163);
  --card: oklch(0.152 0.027 325.094);
  --card-foreground: oklch(0.984 0.004 324.152);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.869 0.061 324.526);
  --primary-foreground: oklch(0.361 0.117 325.656);
  --secondary: oklch(0.854 0.052 305.649);
  --secondary-foreground: oklch(0.319 0.103 301.525);
  --accent: oklch(0.865 0.048 343.928);
  --accent-foreground: oklch(0.352 0.096 349.075);
  --destructive: oklch(0.64 0.246 30.435);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.061 324.526);
  --chart-1: oklch(0.869 0.061 324.526);
  --chart-2: oklch(0.854 0.052 305.649);
  --chart-3: oklch(0.865 0.048 343.928);
  --chart-4: oklch(0.883 0.041 305.831);
  --chart-5: oklch(0.868 0.065 324.551);
}