Kindhearted for shadcn/ui

Kindhearted is a shadcn/ui theme built around a purple primary color (#9a25ad) with pink accents (#ad257b). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#9a25ad) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#000000black
Foreground
#000000black
#f8f7f8whitesmoke
Card
#fbf8fcghostwhite
#000000black
Card foreground
#000000black
#f8f7f8whitesmoke
Popover
#fbf8fcghostwhite
#000000black
Popover foreground
#000000black
#f8f7f8whitesmoke
Primary
#9a25addarkorchid
#9a25addarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5625adrebeccapurple
#5625adrebeccapurple
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eeeaf6lavender
#0e0915black
Muted foreground
#453d52darkslategray
#b5adc2silver
Accent
#ad257bmediumvioletred
#ad257bmediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c64901chocolate
#ef5801orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9a25addarkorchid
#9a25addarkorchid

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button6.47:1AA
Secondary button9.29:1AAA
Muted text8.67:1AAA
Accent6.34:1AA
Destructive4.81:1AA
Dark mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button6.47:1AA
Secondary button9.29:1AAA
Muted text9.08:1AAA
Accent6.34:1AA
Destructive3.46: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.983 0.007 321.611);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.016 302.668);
  --muted-foreground: oklch(0.376 0.037 301.395);
  --popover: oklch(0.983 0.007 321.611);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.007 321.611);
  --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.51 0.214 321.842);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.421 0.197 292.356);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.189 347.23);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.57 0.172 41.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.214 321.842);
  --chart-1: oklch(0.51 0.214 321.842);
  --chart-2: oklch(0.421 0.197 292.356);
  --chart-3: oklch(0.512 0.189 347.23);
  --chart-4: oklch(0.443 0.208 292.226);
  --chart-5: oklch(0.514 0.22 321.771);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 321.6);
  --muted: oklch(0.154 0.025 300.368);
  --muted-foreground: oklch(0.761 0.031 302.299);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.003 321.6);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.003 321.6);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0.214 321.842);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.421 0.197 292.356);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.189 347.23);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.199 41.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.214 321.842);
  --chart-1: oklch(0.51 0.214 321.842);
  --chart-2: oklch(0.421 0.197 292.356);
  --chart-3: oklch(0.512 0.189 347.23);
  --chart-4: oklch(0.443 0.208 292.226);
  --chart-5: oklch(0.514 0.22 321.771);
}