Kind for shadcn/ui

Kind is a shadcn/ui theme built around a green primary color (#b1e292) with neutral gray accents (#e3e3e3). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#b1e292) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#000000black
#fafbf9snow
Card
#fcfefbwhite
#020401black
Card foreground
#000000black
#fafbf9snow
Popover
#fcfefbwhite
#020401black
Popover foreground
#000000black
#fafbf9snow
Primary
#b1e292lightgreen
#b1e292lightgreen
Primary foreground
#1d340edarkgreen
#1d340edarkgreen
Secondary
#e3e3e3gainsboro
#2b2d2adarkslategray
Secondary foreground
#4a4a4adarkslategray
#c4c6c3silver
Muted
#f7eeeelinen
#0c1108black
Muted foreground
#594f4fdimgray
#aab0a6darkgray
Accent
#e3e3e3gainsboro
#2b2d2adarkslategray
Accent foreground
#4a4a4adarkslategray
#c4c6c3silver
Destructive
#b31414firebrick
#dc1818crimson
Destructive foreground
#fefafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1e292lightgreen
#b1e292lightgreen

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.67:1AAA
Primary button9.14:1AAA
Secondary button6.90:1AA
Muted text6.91:1AA
Accent6.90:1AA
Destructive6.69:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button9.14:1AAA
Secondary button8.10:1AAA
Muted text8.59:1AAA
Accent8.10:1AAA
Destructive4.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 133.01);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.01 17.335);
  --muted-foreground: oklch(0.438 0.013 17.677);
  --popover: oklch(0.994 0.004 133.01);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 133.01);
  --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.859 0.118 134.069);
  --primary-foreground: oklch(0.297 0.069 135.356);
  --secondary: oklch(0.916 0 180);
  --secondary-foreground: oklch(0.409 0 190.305);
  --accent: oklch(0.916 0 180);
  --accent-foreground: oklch(0.409 0 190.305);
  --destructive: oklch(0.489 0.19 28.077);
  --destructive-foreground: oklch(0.989 0.004 17.231);
  --ring: oklch(0.859 0.118 134.069);
  --chart-1: oklch(0.859 0.118 134.069);
  --chart-2: oklch(0.916 0 180);
  --chart-3: oklch(0.916 0 180);
  --chart-4: oklch(0.939 0 180);
  --chart-5: oklch(0.863 0.123 134.128);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.015 131.6);
  --foreground: oklch(0.987 0.003 133.009);
  --muted: oklch(0.17 0.021 133.685);
  --muted-foreground: oklch(0.749 0.016 133.132);
  --popover: oklch(0.099 0.015 131.6);
  --popover-foreground: oklch(0.987 0.003 133.009);
  --card: oklch(0.099 0.015 131.6);
  --card-foreground: oklch(0.987 0.003 133.009);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.859 0.118 134.069);
  --primary-foreground: oklch(0.297 0.069 135.356);
  --secondary: oklch(0.293 0.005 133.107);
  --secondary-foreground: oklch(0.824 0.005 133.03);
  --accent: oklch(0.293 0.005 133.107);
  --accent-foreground: oklch(0.824 0.005 133.03);
  --destructive: oklch(0.57 0.223 28.235);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.859 0.118 134.069);
  --chart-1: oklch(0.859 0.118 134.069);
  --chart-2: oklch(0.293 0.005 133.107);
  --chart-3: oklch(0.293 0.005 133.107);
  --chart-4: oklch(0.324 0.006 133.112);
  --chart-5: oklch(0.863 0.123 134.128);
}