Kind for shadcn/ui

Kind is a shadcn/ui theme built around a muted light red primary color (#d1c1c3) with muted light teal accents (#c1d1d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#d1c1c3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090202black
#faf9f9snow
Card
#ffffffwhite
#000000black
Card foreground
#090202black
#faf9f9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#090202black
#faf9f9snow
Primary
#d1c1c3silver
#d1c1c3silver
Primary foreground
#38292adarkslategray
#38292adarkslategray
Secondary
#c1d1d0lightgrey
#c1d1d0lightgrey
Secondary foreground
#293837darkslategray
#293837darkslategray
Muted
#e4eceblavender
#131b1ablack
Muted foreground
#587472dimgray
#8ba7a5darkgray
Accent
#c1d1d0lightgrey
#c1d1d0lightgrey
Accent foreground
#293837darkslategray
#293837darkslategray
Destructive
#b02107firebrick
#f75336tomato
Destructive foreground
#feeeeblinen
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d1c1c3silver
#d1c1c3silver

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button8.01:1AAA
Secondary button7.78:1AAA
Muted text4.21:1AA Large
Accent7.78:1AAA
Destructive6.07:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button8.01:1AAA
Secondary button7.78:1AAA
Muted text6.80:1AA
Accent7.78:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.023 13.597);
  --muted: oklch(0.937 0.009 191.043);
  --muted-foreground: oklch(0.537 0.033 189.858);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.023 13.597);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.101 0.023 13.597);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.018 11.732);
  --primary-foreground: oklch(0.299 0.022 12.868);
  --secondary: oklch(0.85 0.017 190.798);
  --secondary-foreground: oklch(0.326 0.019 189.927);
  --accent: oklch(0.85 0.017 190.798);
  --accent-foreground: oklch(0.326 0.019 189.927);
  --destructive: oklch(0.491 0.182 31.827);
  --destructive-foreground: oklch(0.962 0.018 29.54);
  --ring: oklch(0.826 0.018 11.732);
  --chart-1: oklch(0.826 0.018 11.732);
  --chart-2: oklch(0.85 0.017 190.798);
  --chart-3: oklch(0.85 0.017 190.798);
  --chart-4: oklch(0.871 0.015 190.874);
  --chart-5: oklch(0.824 0.022 11.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.001 11.274);
  --muted: oklch(0.214 0.012 189.975);
  --muted-foreground: oklch(0.707 0.032 190.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.001 11.274);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.001 11.274);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.826 0.018 11.732);
  --primary-foreground: oklch(0.299 0.022 12.868);
  --secondary: oklch(0.85 0.017 190.798);
  --secondary-foreground: oklch(0.326 0.019 189.927);
  --accent: oklch(0.85 0.017 190.798);
  --accent-foreground: oklch(0.326 0.019 189.927);
  --destructive: oklch(0.663 0.204 32.36);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.826 0.018 11.732);
  --chart-1: oklch(0.826 0.018 11.732);
  --chart-2: oklch(0.85 0.017 190.798);
  --chart-3: oklch(0.85 0.017 190.798);
  --chart-4: oklch(0.871 0.015 190.874);
  --chart-5: oklch(0.824 0.022 11.833);
}