Kindhearted for shadcn/ui

Kindhearted is a shadcn/ui theme built around a green primary color (#51d66e) with teal accents (#51d6b1). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#51d66e) on a green-tinted background (#070d08).

Color palette

TokenLightDark
Background
#fbfefcwhite
#070d08black
Foreground
#010401black
#fcfdfcwhite
Card
#fbfefcwhite
#070d08black
Card foreground
#010401black
#fcfdfcwhite
Popover
#fbfefcwhite
#070d08black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#51d66emediumseagreen
#51d66emediumseagreen
Primary foreground
#000000black
#000000black
Secondary
#77d651yellowgreen
#77d651yellowgreen
Secondary foreground
#000000black
#000000black
Muted
#eff2edwhitesmoke
#0e120dblack
Muted foreground
#535652darkslategray
#aaada9darkgray
Accent
#51d6b1mediumaquamarine
#51d6b1mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#8a3305saddlebrown
#ec5809orangered
Destructive foreground
#fdd8c4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#51d66emediumseagreen
#51d66emediumseagreen

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button11.22:1AAA
Secondary button11.55:1AAA
Muted text6.58:1AA
Accent11.63:1AAA
Destructive6.16:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button11.22:1AAA
Secondary button11.55:1AAA
Muted text8.35:1AAA
Accent11.63:1AAA
Destructive3.51: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.994 0.003 152.566);
  --foreground: oklch(0.099 0.021 151.574);
  --muted: oklch(0.957 0.007 136.631);
  --muted-foreground: oklch(0.449 0.006 136.65);
  --popover: oklch(0.994 0.003 152.566);
  --popover-foreground: oklch(0.099 0.021 151.574);
  --card: oklch(0.994 0.003 152.566);
  --card-foreground: oklch(0.099 0.021 151.574);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.78 0.185 147.752);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.791 0.192 137.961);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.794 0.128 170.95);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.441 0.128 42.485);
  --destructive-foreground: oklch(0.908 0.049 50.01);
  --ring: oklch(0.78 0.185 147.752);
  --chart-1: oklch(0.78 0.185 147.752);
  --chart-2: oklch(0.791 0.192 137.961);
  --chart-3: oklch(0.794 0.128 170.95);
  --chart-4: oklch(0.804 0.181 137.754);
  --chart-5: oklch(0.787 0.192 147.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.015 151.739);
  --foreground: oklch(0.993 0.003 152.577);
  --muted: oklch(0.175 0.011 136.801);
  --muted-foreground: oklch(0.743 0.005 136.631);
  --popover: oklch(0.152 0.015 151.739);
  --popover-foreground: oklch(0.993 0.003 152.577);
  --card: oklch(0.152 0.015 151.739);
  --card-foreground: oklch(0.993 0.003 152.577);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.78 0.185 147.752);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.791 0.192 137.961);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.794 0.128 170.95);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.65 0.197 41.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.78 0.185 147.752);
  --chart-1: oklch(0.78 0.185 147.752);
  --chart-2: oklch(0.791 0.192 137.961);
  --chart-3: oklch(0.794 0.128 170.95);
  --chart-4: oklch(0.804 0.181 137.754);
  --chart-5: oklch(0.787 0.192 147.546);
}