Mankind for shadcn/ui

Mankind is a shadcn/ui theme built around a muted light green primary color (#f0f2e9) with muted light green accents (#d6d9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f0f2e9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#f0f2e9linen
#f0f2e9linen
Primary foreground
#262919black
#262919black
Secondary
#d6d9c9lightgrey
#1c1e15black
Secondary foreground
#3e422edarkslategray
#bac0a5silver
Muted
#eeefecwhitesmoke
#131310black
Muted foreground
#4d4d4cdarkslategray
#b3b3b2darkgray
Accent
#d6d9c9lightgrey
#1c1e15black
Accent foreground
#3e422edarkslategray
#bac0a5silver
Destructive
#671c09maroon
#ec4f27chocolate
Destructive foreground
#f8baablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f2e9linen
#f0f2e9linen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button13.10:1AAA
Secondary button7.24:1AAA
Muted text7.31:1AAA
Accent7.24:1AAA
Destructive7.21:1AAA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button13.10:1AAA
Secondary button8.97:1AAA
Muted text8.85:1AAA
Accent8.97:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.004 115.653);
  --muted-foreground: oklch(0.42 0.003 115.689);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.956 0.012 115.808);
  --primary-foreground: oklch(0.274 0.029 117.57);
  --secondary: oklch(0.879 0.023 116.048);
  --secondary-foreground: oklch(0.37 0.033 117.25);
  --accent: oklch(0.879 0.023 116.048);
  --accent-foreground: oklch(0.37 0.033 117.25);
  --destructive: oklch(0.347 0.111 34.642);
  --destructive-foreground: oklch(0.841 0.075 34.474);
  --ring: oklch(0.956 0.012 115.808);
  --chart-1: oklch(0.956 0.012 115.808);
  --chart-2: oklch(0.879 0.023 116.048);
  --chart-3: oklch(0.879 0.023 116.048);
  --chart-4: oklch(0.9 0.019 115.96);
  --chart-5: oklch(0.957 0.013 115.835);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 115.616);
  --muted: oklch(0.186 0.006 116.143);
  --muted-foreground: oklch(0.767 0.002 115.63);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 115.616);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.002 115.616);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.956 0.012 115.808);
  --primary-foreground: oklch(0.274 0.029 117.57);
  --secondary: oklch(0.229 0.016 116.887);
  --secondary-foreground: oklch(0.795 0.036 116.413);
  --accent: oklch(0.229 0.016 116.887);
  --accent-foreground: oklch(0.795 0.036 116.413);
  --destructive: oklch(0.64 0.201 34.767);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.012 115.808);
  --chart-1: oklch(0.956 0.012 115.808);
  --chart-2: oklch(0.229 0.016 116.887);
  --chart-3: oklch(0.229 0.016 116.887);
  --chart-4: oklch(0.266 0.02 116.992);
  --chart-5: oklch(0.957 0.013 115.835);
}