Reluctant Heartwarming for shadcn/ui

Reluctant Heartwarming is a shadcn/ui theme built around a vivid red primary color (#bf1a1a) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#f4f4f4). Dark mode keeps the vivid red primary (#bf1a1a) on a blue-tinted background (#0e1015).

Color palette

TokenLightDark
Background
#f4f4f4whitesmoke
#0e1015black
Foreground
#121306black
#fafaf5whitesmoke
Card
#fcfcf8snow
#0b0d10black
Card foreground
#121306black
#fafaf5whitesmoke
Popover
#fcfcf8snow
#0a0b10black
Popover foreground
#121306black
#fafaf5whitesmoke
Primary
#bf1a1afirebrick
#bf1a1afirebrick
Primary foreground
#ffffffwhite
#f6e8e8linen
Secondary
#0e1015black
#ffffffwhite
Secondary foreground
#ffffffwhite
#090001black
Muted
#dee3eflavender
#1d222edarkslategray
Muted foreground
#0e1015black
#c3d0f0lightblue
Accent
#d9d9d9gainsboro
#22293adarkslategray
Accent foreground
#353535darkslategray
#ffffffwhite
Destructive
#e42204red
#f60303red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#c8c8c8silver
#1b1f2ablack
Input
#d5d5d5lightgrey
#1b1f2ablack
Ring
#3a3c25darkslategray
#f36868salmon

Contrast

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

Light mode
Text on background17.08:1AAA
Text on card18.22:1AAA
Primary button6.21:1AA
Secondary button19.02:1AAA
Muted text14.78:1AAA
Accent8.71:1AAA
Destructive4.62:1AA
Dark mode
Text on background18.20:1AAA
Text on card18.60:1AAA
Primary button5.19:1AA
Secondary button20.74:1AAA
Muted text10.31:1AAA
Accent14.50:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.968 0 161.565);
  --foreground: oklch(0.183 0.025 111.826);
  --muted: oklch(0.915 0.017 268.464);
  --muted-foreground: oklch(0.173 0.011 268.057);
  --popover: oklch(0.99 0.006 109.592);
  --popover-foreground: oklch(0.183 0.025 111.826);
  --card: oklch(0.99 0.006 109.592);
  --card-foreground: oklch(0.183 0.025 111.826);
  --border: oklch(0.834 0 180);
  --input: oklch(0.874 0 206.565);
  --primary: oklch(0.516 0.197 27.781);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.173 0.011 268.057);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.886 0 171.254);
  --accent-foreground: oklch(0.33 0 180);
  --destructive: oklch(0.588 0.227 30.987);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.036 111.368);
  --chart-1: oklch(0.516 0.197 27.781);
  --chart-2: oklch(0.173 0.011 268.057);
  --chart-3: oklch(0.886 0 171.254);
  --chart-4: oklch(0.205 0.015 267.946);
  --chart-5: oklch(0.52 0.202 28.065);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.172 0.012 272.174);
  --foreground: oklch(0.984 0.007 109.616);
  --muted: oklch(0.252 0.024 267.697);
  --muted-foreground: oklch(0.858 0.047 268.135);
  --popover: oklch(0.152 0.009 269.535);
  --popover-foreground: oklch(0.984 0.007 109.616);
  --card: oklch(0.158 0.008 268.209);
  --card-foreground: oklch(0.984 0.007 109.616);
  --border: oklch(0.241 0.022 267.739);
  --input: oklch(0.24 0.022 269.146);
  --primary: oklch(0.516 0.197 27.775);
  --primary-foreground: oklch(0.943 0.016 17.432);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.089 0.036 16.486);
  --accent: oklch(0.282 0.032 267.477);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.612 0.25 29.141);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.173 22.71);
  --chart-1: oklch(0.516 0.197 27.775);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(0.282 0.032 267.477);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(0.521 0.202 28.06);
}