Father-in-law for shadcn/ui

Father-in-law is a shadcn/ui theme built around a muted yellow primary color (#6d6a46) with muted green accents (#5c6d46). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted yellow primary (#6d6a46) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#030302black
Foreground
#080702black
#f9f9f6whitesmoke
Card
#fdfdfcwhite
#030302black
Card foreground
#080702black
#f9f9f6whitesmoke
Popover
#fdfdfcwhite
#030302black
Popover foreground
#080702black
#f9f9f6whitesmoke
Primary
#6d6a46darkolivegreen
#6d6a46darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6d5746darkolivegreen
#6d5746darkolivegreen
Secondary foreground
#f5f2efwhitesmoke
#f5f2efwhitesmoke
Muted
#dcd8d6gainsboro
#292623darkslategray
Muted foreground
#48423cdarkslategray
#c3bcb7silver
Accent
#5c6d46darkolivegreen
#5c6d46darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#992006darkred
#f74922orangered
Destructive foreground
#fddbd3antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d6a46darkolivegreen
#6d6a46darkolivegreen

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button5.51:1AA
Secondary button6.09:1AA
Muted text7.01:1AAA
Accent5.63:1AA
Destructive6.34:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button5.51:1AA
Secondary button6.09:1AA
Muted text8.02:1AAA
Accent5.63:1AA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 103.141);
  --foreground: oklch(0.129 0.016 105.814);
  --muted: oklch(0.885 0.005 60.202);
  --muted-foreground: oklch(0.382 0.013 59.824);
  --popover: oklch(0.994 0.002 103.141);
  --popover-foreground: oklch(0.129 0.016 105.814);
  --card: oklch(0.994 0.002 103.141);
  --card-foreground: oklch(0.129 0.016 105.814);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.518 0.054 104.628);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.04 59.026);
  --secondary-foreground: oklch(0.963 0.005 60.216);
  --accent: oklch(0.51 0.062 127.512);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.446 0.159 33.104);
  --destructive-foreground: oklch(0.917 0.04 32.737);
  --ring: oklch(0.518 0.054 104.628);
  --chart-1: oklch(0.518 0.054 104.628);
  --chart-2: oklch(0.473 0.04 59.026);
  --chart-3: oklch(0.51 0.062 127.512);
  --chart-4: oklch(0.501 0.042 59.01);
  --chart-5: oklch(0.525 0.06 104.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.008 104.941);
  --foreground: oklch(0.981 0.004 103.181);
  --muted: oklch(0.271 0.007 59.923);
  --muted-foreground: oklch(0.799 0.011 60.103);
  --popover: oklch(0.099 0.008 104.941);
  --popover-foreground: oklch(0.981 0.004 103.181);
  --card: oklch(0.099 0.008 104.941);
  --card-foreground: oklch(0.981 0.004 103.181);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.518 0.054 104.628);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.04 59.026);
  --secondary-foreground: oklch(0.963 0.005 60.216);
  --accent: oklch(0.51 0.062 127.512);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.217 33.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.518 0.054 104.628);
  --chart-1: oklch(0.518 0.054 104.628);
  --chart-2: oklch(0.473 0.04 59.026);
  --chart-3: oklch(0.51 0.062 127.512);
  --chart-4: oklch(0.501 0.042 59.01);
  --chart-5: oklch(0.525 0.06 104.754);
}