Fatherly is a shadcn/ui theme built around a light violet primary color (#e1d8f3) with light purple accents (#eed8f3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#e1d8f3) on a violet-tinted background (#09060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #09060fblack |
| Foreground | #070212black | #ffffffwhite |
| Card | #fcfcfcsnow | #0b0712black |
| Card foreground | #05020eblack | #ffffffwhite |
| Popover | #ffffffwhite | #09060fblack |
| Popover foreground | #070212black | #ffffffwhite |
| Primary | #e1d8f3lavender | #e1d8f3lavender |
| Primary foreground | #3e2574darkslateblue | #3e2574darkslateblue |
| Secondary | #d8ddf3lavender | #d8ddf3lavender |
| Secondary foreground | #253474midnightblue | #253474midnightblue |
| Muted | #e1e3eflavender | #10121eblack |
| Muted foreground | #46484edarkslategray | #b1b3b9darkgray |
| Accent | #eed8f3lavender | #eed8f3lavender |
| Accent foreground | #652574rebeccapurple | #652574rebeccapurple |
| Destructive | #622604maroon | #f67023chocolate |
| Destructive foreground | #fbbf9dnavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1d8f3lavender | #e1d8f3lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.14:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 8.87:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 7.25:1 | AAA |
Paste this into your globals.css to use Fatherly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.043 299.222);
--muted: oklch(0.919 0.016 275.926);
--muted-foreground: oklch(0.401 0.01 275.82);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.043 299.222);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.037 300.817);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.036 300.102);
--primary-foreground: oklch(0.345 0.127 293.106);
--secondary: oklch(0.901 0.029 275.717);
--secondary-foreground: oklch(0.351 0.111 270.242);
--accent: oklch(0.909 0.042 320.032);
--accent-foreground: oklch(0.395 0.139 319.811);
--destructive: oklch(0.352 0.096 45.19);
--destructive-foreground: oklch(0.852 0.083 51.328);
--ring: oklch(0.898 0.036 300.102);
--chart-1: oklch(0.898 0.036 300.102);
--chart-2: oklch(0.901 0.029 275.717);
--chart-3: oklch(0.909 0.042 320.032);
--chart-4: oklch(0.931 0.02 275.871);
--chart-5: oklch(0.897 0.038 300.061);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.022 299.966);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.025 274.041);
--muted-foreground: oklch(0.767 0.009 276.017);
--popover: oklch(0.131 0.022 299.966);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.025 298.485);
--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.898 0.036 300.102);
--primary-foreground: oklch(0.345 0.127 293.106);
--secondary: oklch(0.901 0.029 275.717);
--secondary-foreground: oklch(0.351 0.111 270.242);
--accent: oklch(0.909 0.042 320.032);
--accent-foreground: oklch(0.395 0.139 319.811);
--destructive: oklch(0.697 0.184 45.538);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.898 0.036 300.102);
--chart-1: oklch(0.898 0.036 300.102);
--chart-2: oklch(0.901 0.029 275.717);
--chart-3: oklch(0.909 0.042 320.032);
--chart-4: oklch(0.931 0.02 275.871);
--chart-5: oklch(0.897 0.038 300.061);
}