Warmth for shadcn/ui

Warmth is a shadcn/ui theme built around a light pink primary color (#f3b9cb) with light teal accents (#b9f3e2). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light pink primary (#f3b9cb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#000000black
#fbf8f9snow
Card
#fdf6f8snow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf6f8snow
#030303black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#f3b9cbpink
#f3b9cbpink
Primary foreground
#69122cmaroon
#69122cmaroon
Secondary
#b9f3e2paleturquoise
#b9f3e2paleturquoise
Secondary foreground
#03110dblack
#03110dblack
Muted
#edf2f1whitesmoke
#0d1210black
Muted foreground
#40544edarkslategray
#abbfb9silver
Accent
#b9f3e2paleturquoise
#b9f3e2paleturquoise
Accent foreground
#03110dblack
#03110dblack
Destructive
#d64e05chocolate
#f45906orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3b9cbpink
#f3b9cbpink

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card19.77:1AAA
Primary button7.33:1AAA
Secondary button15.60:1AAA
Muted text7.16:1AAA
Accent15.60:1AAA
Destructive4.23:1AA Large
Dark mode
Text on background19.89:1AAA
Text on card20.19:1AAA
Primary button7.33:1AAA
Secondary button15.60:1AAA
Muted text9.81:1AAA
Accent15.60:1AAA
Destructive3.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 356.776);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.006 176.489);
  --muted-foreground: oklch(0.428 0.028 174.627);
  --popover: oklch(0.98 0.008 356.896);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.008 356.896);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.844 0.07 358.954);
  --primary-foreground: oklch(0.345 0.12 9.136);
  --secondary: oklch(0.92 0.063 174.47);
  --secondary-foreground: oklch(0.164 0.025 173.595);
  --accent: oklch(0.92 0.063 174.47);
  --accent-foreground: oklch(0.164 0.025 173.595);
  --destructive: oklch(0.602 0.183 41.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.07 358.954);
  --chart-1: oklch(0.844 0.07 358.954);
  --chart-2: oklch(0.92 0.063 174.47);
  --chart-3: oklch(0.92 0.063 174.47);
  --chart-4: oklch(0.935 0.052 174.932);
  --chart-5: oklch(0.843 0.073 359.055);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 356.753);
  --muted: oklch(0.175 0.008 175.211);
  --muted-foreground: oklch(0.788 0.024 175.734);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 356.705);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 356.705);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.844 0.07 358.954);
  --primary-foreground: oklch(0.345 0.12 9.136);
  --secondary: oklch(0.92 0.063 174.47);
  --secondary-foreground: oklch(0.164 0.025 173.595);
  --accent: oklch(0.92 0.063 174.47);
  --accent-foreground: oklch(0.164 0.025 173.595);
  --destructive: oklch(0.663 0.203 40.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.07 358.954);
  --chart-1: oklch(0.844 0.07 358.954);
  --chart-2: oklch(0.92 0.063 174.47);
  --chart-3: oklch(0.92 0.063 174.47);
  --chart-4: oklch(0.935 0.052 174.932);
  --chart-5: oklch(0.843 0.073 359.055);
}