Kindness for shadcn/ui

Kindness is a shadcn/ui theme built around a red primary color (#b27b6c) with neutral gray accents (#e4e2e2). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the red primary (#b27b6c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf8f6snow
#000000black
Foreground
#120603black
#faf6f5whitesmoke
Card
#fcf4f2seashell
#030303black
Card foreground
#0d0502black
#fcf9f8snow
Popover
#fdf8f6snow
#000000black
Popover foreground
#120603black
#faf6f5whitesmoke
Primary
#b27b6crosybrown
#b27b6crosybrown
Primary foreground
#000000black
#000000black
Secondary
#e4e2e2gainsboro
#353231darkslategray
Secondary foreground
#4e4846darkslategray
#cecbcalightgrey
Muted
#f4eae7linen
#180e0bblack
Muted foreground
#6e5d59dimgray
#a69591rosybrown
Accent
#e4e2e2gainsboro
#353231darkslategray
Accent foreground
#4e4846darkslategray
#cecbcalightgrey
Destructive
#8d2c0csaddlebrown
#ed6031tomato
Destructive foreground
#fbdbd0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b27b6crosybrown
#b27b6crosybrown

Contrast

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

Light mode
Text on background18.94:1AAA
Text on card18.69:1AAA
Primary button5.93:1AA
Secondary button6.96:1AA
Muted text5.24:1AA
Accent6.96:1AA
Destructive6.45:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.73:1AAA
Primary button5.93:1AA
Secondary button7.87:1AAA
Muted text6.61:1AA
Accent7.87:1AAA
Destructive6.30:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 35.991);
  --foreground: oklch(0.14 0.025 43.671);
  --muted: oklch(0.943 0.012 35.974);
  --muted-foreground: oklch(0.495 0.024 35.946);
  --popover: oklch(0.983 0.006 35.991);
  --popover-foreground: oklch(0.14 0.025 43.671);
  --card: oklch(0.974 0.009 35.982);
  --card-foreground: oklch(0.126 0.021 45.359);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.635 0.072 36.099);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.915 0.003 36.002);
  --secondary-foreground: oklch(0.406 0.008 35.958);
  --accent: oklch(0.915 0.003 36.002);
  --accent-foreground: oklch(0.406 0.008 35.958);
  --destructive: oklch(0.437 0.137 36.962);
  --destructive-foreground: oklch(0.915 0.039 39.306);
  --ring: oklch(0.635 0.072 36.099);
  --chart-1: oklch(0.635 0.072 36.099);
  --chart-2: oklch(0.915 0.003 36.002);
  --chart-3: oklch(0.915 0.003 36.002);
  --chart-4: oklch(0.938 0.002 36.005);
  --chart-5: oklch(0.634 0.079 36.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 35.995);
  --muted: oklch(0.178 0.018 36.063);
  --muted-foreground: oklch(0.685 0.022 35.946);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 35.995);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.003 36);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.635 0.072 36.099);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.32 0.004 35.977);
  --secondary-foreground: oklch(0.844 0.003 36);
  --accent: oklch(0.32 0.004 35.977);
  --accent-foreground: oklch(0.844 0.003 36);
  --destructive: oklch(0.662 0.185 38.061);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.635 0.072 36.099);
  --chart-1: oklch(0.635 0.072 36.099);
  --chart-2: oklch(0.32 0.004 35.977);
  --chart-3: oklch(0.32 0.004 35.977);
  --chart-4: oklch(0.35 0.004 35.976);
  --chart-5: oklch(0.634 0.079 36.14);
}