Hearty for shadcn/ui

Hearty is a shadcn/ui theme built around a muted red primary color (#804947) with muted indigo accents (#494780). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted red primary (#804947) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#150605black
#fbf9f8snow
Card
#fbf4f4lavenderblush
#030303black
Card foreground
#110504black
#fdfcfcsnow
Popover
#fbf4f4lavenderblush
#030303black
Popover foreground
#110504black
#fdfcfcsnow
Primary
#804947sienna
#804947sienna
Primary foreground
#fdfcfcsnow
#fdfcfcsnow
Secondary
#478049seagreen
#478049seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edf2eewhitesmoke
#0d120dblack
Muted foreground
#5d655ddimgray
#9aa29bdarkgray
Accent
#494780darkslateblue
#494780darkslateblue
Accent foreground
#fcfcfdwhite
#fcfcfdwhite
Destructive
#99190bdarkred
#f0412dtomato
Destructive foreground
#fcdcd9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#804947sienna
#804947sienna

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.50:1AAA
Primary button6.88:1AA
Secondary button4.70:1AA
Muted text5.32:1AA
Accent8.21:1AAA
Destructive6.58:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.19:1AAA
Primary button6.88:1AA
Secondary button4.70:1AA
Muted text7.24:1AAA
Accent8.21:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 20.947);
  --foreground: oklch(0.146 0.029 25.602);
  --muted: oklch(0.956 0.008 146.965);
  --muted-foreground: oklch(0.497 0.015 146.754);
  --popover: oklch(0.973 0.007 20.977);
  --popover-foreground: oklch(0.133 0.025 25.712);
  --card: oklch(0.973 0.007 20.977);
  --card-foreground: oklch(0.133 0.025 25.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.471 0.075 23.533);
  --primary-foreground: oklch(0.991 0.001 20.909);
  --secondary: oklch(0.547 0.103 145.052);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.428 0.094 283.956);
  --accent-foreground: oklch(0.991 0.002 288.673);
  --destructive: oklch(0.44 0.164 30.519);
  --destructive-foreground: oklch(0.921 0.036 25.354);
  --ring: oklch(0.471 0.075 23.533);
  --chart-1: oklch(0.471 0.075 23.533);
  --chart-2: oklch(0.547 0.103 145.052);
  --chart-3: oklch(0.428 0.094 283.956);
  --chart-4: oklch(0.577 0.11 145.036);
  --chart-5: oklch(0.47 0.083 23.901);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 20.928);
  --muted: oklch(0.174 0.011 146.401);
  --muted-foreground: oklch(0.704 0.014 146.855);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.001 20.909);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.001 20.909);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.471 0.075 23.533);
  --primary-foreground: oklch(0.991 0.001 20.909);
  --secondary: oklch(0.547 0.103 145.052);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.428 0.094 283.956);
  --accent-foreground: oklch(0.991 0.002 288.673);
  --destructive: oklch(0.634 0.215 30.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.471 0.075 23.533);
  --chart-1: oklch(0.471 0.075 23.533);
  --chart-2: oklch(0.547 0.103 145.052);
  --chart-3: oklch(0.428 0.094 283.956);
  --chart-4: oklch(0.577 0.11 145.036);
  --chart-5: oklch(0.47 0.083 23.901);
}