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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 6.09:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 6.09:1 | AA |
| Muted text | 8.02:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 3.54:1 | AA Large |
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);
}