Sister-in-law for shadcn/ui

Sister-in-law is a shadcn/ui theme built around a muted green primary color (#5c7141) with neutral gray accents (#dbdcdb). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted green primary (#5c7141) on a green-tinted background (#080c03).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#080c03black
Foreground
#030401black
#ffffffwhite
Card
#f8fcf2floralwhite
#0b1004black
Card foreground
#000000black
#ffffffwhite
Popover
#fafdf7mintcream
#080c03black
Popover foreground
#030401black
#ffffffwhite
Primary
#5c7141darkolivegreen
#5c7141darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dbdcdbgainsboro
#2f3428darkslategray
Secondary foreground
#424342darkslategray
#c8cec0silver
Muted
#eef4e7linen
#13180bblack
Muted foreground
#505549darkslategray
#b1b6aadarkgray
Accent
#dbdcdbgainsboro
#2f3428darkslategray
Accent foreground
#424342darkslategray
#c8cec0silver
Destructive
#d54510chocolate
#f06938tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c7141darkolivegreen
#5c7141darkolivegreen

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.23:1AAA
Primary button5.36:1AA
Secondary button7.21:1AAA
Muted text6.82:1AA
Accent7.21:1AAA
Destructive4.47:1AA Large
Dark mode
Text on background19.72:1AAA
Text on card19.26:1AAA
Primary button5.36:1AA
Secondary button7.96:1AAA
Muted text8.70:1AAA
Accent7.96:1AAA
Destructive6.77:1AA

CSS variables

Paste this into your globals.css to use Sister-in-law in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 125.862);
  --foreground: oklch(0.1 0.014 124.95);
  --muted: oklch(0.958 0.018 125.991);
  --muted-foreground: oklch(0.442 0.021 126.397);
  --popover: oklch(0.991 0.009 125.862);
  --popover-foreground: oklch(0.1 0.014 124.95);
  --card: oklch(0.986 0.014 125.924);
  --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.52 0.075 127.897);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.893 0.001 125.755);
  --secondary-foreground: oklch(0.382 0.002 125.821);
  --accent: oklch(0.893 0.001 125.755);
  --accent-foreground: oklch(0.382 0.002 125.821);
  --destructive: oklch(0.59 0.19 37.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.075 127.897);
  --chart-1: oklch(0.52 0.075 127.897);
  --chart-2: oklch(0.893 0.001 125.755);
  --chart-3: oklch(0.893 0.001 125.755);
  --chart-4: oklch(0.916 0.001 125.751);
  --chart-5: oklch(0.527 0.083 128.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.023 125.134);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.2 0.026 127.615);
  --muted-foreground: oklch(0.769 0.019 126.066);
  --popover: oklch(0.146 0.023 125.134);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.163 0.026 126.526);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.52 0.075 127.897);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.316 0.022 126.692);
  --secondary-foreground: oklch(0.843 0.021 126.075);
  --accent: oklch(0.316 0.022 126.692);
  --accent-foreground: oklch(0.843 0.021 126.075);
  --destructive: oklch(0.68 0.178 39.48);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.52 0.075 127.897);
  --chart-1: oklch(0.52 0.075 127.897);
  --chart-2: oklch(0.316 0.022 126.692);
  --chart-3: oklch(0.316 0.022 126.692);
  --chart-4: oklch(0.348 0.025 126.723);
  --chart-5: oklch(0.527 0.083 128.127);
}