Warmhearted for shadcn/ui

Warmhearted is a shadcn/ui theme built around a teal primary color (#92c8c9) with yellow accents (#c8c992). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#92c8c9) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0bblack
Foreground
#031717black
#f4fafamintcream
Card
#fcfcfcsnow
#060f0fblack
Card foreground
#021212black
#f8fcfcmintcream
Popover
#ffffffwhite
#040b0bblack
Popover foreground
#031717black
#f4fafamintcream
Primary
#92c8c9skyblue
#92c8c9skyblue
Primary foreground
#0d1b1bblack
#0d1b1bblack
Secondary
#c992c8plum
#c992c8plum
Secondary foreground
#1b0d1bblack
#1b0d1bblack
Muted
#f4f0f4whitesmoke
#0f0b0fblack
Muted foreground
#6c606cdimgray
#9f939fdarkgray
Accent
#c8c992tan
#c8c992tan
Accent foreground
#1b1b0dblack
#1b1b0dblack
Destructive
#632809maroon
#eb661echocolate
Destructive foreground
#f7c2a6navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92c8c9skyblue
#92c8c9skyblue

Contrast

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

Light mode
Text on background18.44:1AAA
Text on card18.71:1AAA
Primary button9.53:1AAA
Secondary button7.51:1AAA
Muted text5.29:1AA
Accent10.12:1AAA
Destructive7.21:1AAA
Dark mode
Text on background18.80:1AAA
Text on card18.80:1AAA
Primary button9.53:1AAA
Secondary button7.51:1AAA
Muted text6.65:1AA
Accent10.12:1AAA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.186 0.028 196.478);
  --muted: oklch(0.96 0.006 326.108);
  --muted-foreground: oklch(0.504 0.024 326.432);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.186 0.028 196.478);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.167 0.025 196.394);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.796 0.056 197.395);
  --primary-foreground: oklch(0.21 0.019 197.169);
  --secondary: oklch(0.73 0.099 327.079);
  --secondary-foreground: oklch(0.188 0.034 327.411);
  --accent: oklch(0.822 0.073 108.712);
  --accent-foreground: oklch(0.219 0.025 109.116);
  --destructive: oklch(0.356 0.094 44.543);
  --destructive-foreground: oklch(0.855 0.072 49.67);
  --ring: oklch(0.796 0.056 197.395);
  --chart-1: oklch(0.796 0.056 197.395);
  --chart-2: oklch(0.73 0.099 327.079);
  --chart-3: oklch(0.822 0.073 108.712);
  --chart-4: oklch(0.755 0.089 326.955);
  --chart-5: oklch(0.801 0.061 197.335);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.013 196.905);
  --foreground: oklch(0.981 0.006 198.27);
  --muted: oklch(0.156 0.01 326.564);
  --muted-foreground: oklch(0.677 0.022 326.318);
  --popover: oklch(0.141 0.013 196.905);
  --popover-foreground: oklch(0.981 0.006 198.27);
  --card: oklch(0.158 0.015 197.016);
  --card-foreground: oklch(0.988 0.004 198.301);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.796 0.056 197.395);
  --primary-foreground: oklch(0.21 0.019 197.169);
  --secondary: oklch(0.73 0.099 327.079);
  --secondary-foreground: oklch(0.188 0.034 327.411);
  --accent: oklch(0.822 0.073 108.712);
  --accent-foreground: oklch(0.219 0.025 109.116);
  --destructive: oklch(0.667 0.182 43.858);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.796 0.056 197.395);
  --chart-1: oklch(0.796 0.056 197.395);
  --chart-2: oklch(0.73 0.099 327.079);
  --chart-3: oklch(0.822 0.073 108.712);
  --chart-4: oklch(0.755 0.089 326.955);
  --chart-5: oklch(0.801 0.061 197.335);
}