Kindhearted for shadcn/ui

Kindhearted is a shadcn/ui theme built around a yellow primary color (#827335) with muted light yellow accents (#dddbd5). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#827335) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefefbwhite
#070603black
Foreground
#000000black
#ffffffwhite
Card
#fefefbwhite
#070603black
Card foreground
#000000black
#ffffffwhite
Popover
#fefefbwhite
#070603black
Popover foreground
#000000black
#ffffffwhite
Primary
#827335olivedrab
#827335olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6e6e5gainsboro
#171612black
Secondary foreground
#4e4d4bdarkslategray
#b8b4a3darkgray
Muted
#f4f1e7linen
#18160bblack
Muted foreground
#514f48darkslategray
#b7b5aedarkgray
Accent
#dddbd5gainsboro
#312d21darkslategray
Accent foreground
#464439darkslategray
#cdc9b6silver
Destructive
#861e09darkred
#e6330forangered
Destructive foreground
#fbcec5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#827335olivedrab
#827335olivedrab

Contrast

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

Light mode
Text on background20.72:1AAA
Text on card20.72:1AAA
Primary button4.71:1AA
Secondary button6.75:1AA
Muted text7.25:1AAA
Accent7.06:1AAA
Destructive6.69:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button4.71:1AA
Secondary button8.70:1AAA
Muted text8.83:1AAA
Accent8.23:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 95.079);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.958 0.014 95.205);
  --muted-foreground: oklch(0.428 0.012 95.344);
  --popover: oklch(0.995 0.004 95.079);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.995 0.004 95.079);
  --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.556 0.084 95.485);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.924 0.001 95.048);
  --secondary-foreground: oklch(0.422 0.004 95.146);
  --accent: oklch(0.891 0.008 95.144);
  --accent-foreground: oklch(0.384 0.017 95.494);
  --destructive: oklch(0.408 0.143 32.77);
  --destructive-foreground: oklch(0.889 0.052 31.276);
  --ring: oklch(0.556 0.084 95.485);
  --chart-1: oklch(0.556 0.084 95.485);
  --chart-2: oklch(0.924 0.001 95.048);
  --chart-3: oklch(0.891 0.008 95.144);
  --chart-4: oklch(0.947 0.001 95.044);
  --chart-5: oklch(0.562 0.088 95.368);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 98.035);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.02 95.788);
  --muted-foreground: oklch(0.773 0.01 95.19);
  --popover: oklch(0.123 0.01 98.035);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.01 98.035);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.556 0.084 95.485);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.2 0.008 95.473);
  --secondary-foreground: oklch(0.768 0.024 95.375);
  --accent: oklch(0.298 0.022 95.695);
  --accent-foreground: oklch(0.834 0.026 95.371);
  --destructive: oklch(0.602 0.219 32.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.556 0.084 95.485);
  --chart-1: oklch(0.556 0.084 95.485);
  --chart-2: oklch(0.2 0.008 95.473);
  --chart-3: oklch(0.298 0.022 95.695);
  --chart-4: oklch(0.236 0.011 95.514);
  --chart-5: oklch(0.562 0.088 95.368);
}