Fatherly is a shadcn/ui theme built around a muted deep indigo primary color (#0d0e11) with muted deep violet accents (#0f0d11). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the muted deep indigo primary (#0d0e11) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f7fdghostwhite | #030307black |
| Foreground | #010209black | #ffffffwhite |
| Card | #f2f3fdaliceblue | #04050bblack |
| Card foreground | #010105black | #ffffffwhite |
| Popover | #f6f7fdghostwhite | #030307black |
| Popover foreground | #010209black | #ffffffwhite |
| Primary | #0d0e11black | #0d0e11black |
| Primary foreground | #9d9fb4darkgray | #9d9fb4darkgray |
| Secondary | #0d1011black | #0d1011black |
| Secondary foreground | #9daab4darkgray | #9daab4darkgray |
| Muted | #dde1e3gainsboro | #1c1f22black |
| Muted foreground | #58626adimgray | #959fa7darkgray |
| Accent | #0f0d11black | #0f0d11black |
| Accent foreground | #a79db4darkgray | #a79db4darkgray |
| Destructive | #cf400cchocolate | #f2551corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0e11black | #0d0e11black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 4.73:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 4.77:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Fatherly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0.009 282.952);
--foreground: oklch(0.088 0.028 272.921);
--muted: oklch(0.907 0.005 240.363);
--muted-foreground: oklch(0.491 0.017 240.779);
--popover: oklch(0.977 0.009 282.952);
--popover-foreground: oklch(0.088 0.028 272.921);
--card: oklch(0.966 0.013 282.87);
--card-foreground: oklch(0.069 0.023 272.921);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.163 0.008 282.26);
--primary-foreground: oklch(0.707 0.031 282.342);
--secondary: oklch(0.169 0.005 240.709);
--secondary-foreground: oklch(0.73 0.02 240.67);
--accent: oklch(0.165 0.009 305.039);
--accent-foreground: oklch(0.712 0.034 305.103);
--destructive: oklch(0.575 0.188 36.819);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.163 0.008 282.26);
--chart-1: oklch(0.163 0.008 282.26);
--chart-2: oklch(0.169 0.005 240.709);
--chart-3: oklch(0.165 0.009 305.039);
--chart-4: oklch(0.204 0.007 240.793);
--chart-5: oklch(0.162 0.01 282.039);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.015 279.042);
--foreground: oklch(1 0 180);
--muted: oklch(0.237 0.007 240.714);
--muted-foreground: oklch(0.698 0.016 240.599);
--popover: oklch(0.101 0.015 279.042);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.018 279.047);
--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.163 0.008 282.26);
--primary-foreground: oklch(0.707 0.031 282.342);
--secondary: oklch(0.169 0.005 240.709);
--secondary-foreground: oklch(0.73 0.02 240.67);
--accent: oklch(0.165 0.009 305.039);
--accent-foreground: oklch(0.712 0.034 305.103);
--destructive: oklch(0.656 0.202 37.869);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.163 0.008 282.26);
--chart-1: oklch(0.163 0.008 282.26);
--chart-2: oklch(0.169 0.005 240.709);
--chart-3: oklch(0.165 0.009 305.039);
--chart-4: oklch(0.204 0.007 240.793);
--chart-5: oklch(0.162 0.01 282.039);
}