Fatherly is a shadcn/ui theme built around a vivid deep blue primary color (#000b2d) with vivid deep violet accents (#0c002d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#000b2d) on a blue-tinted background (#07080e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07080eblack |
| Foreground | #030816black | #f8f9fcghostwhite |
| Card | #fcfcfcsnow | #080a11black |
| Card foreground | #030612black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #080a11black |
| Popover foreground | #030612black | #fcfcfdwhite |
| Primary | #000b2dblack | #000b2dblack |
| Primary foreground | #c7d4fepowderblue | #c7d4fepowderblue |
| Secondary | #00212dblack | #00212dblack |
| Secondary foreground | #02b6f7deepskyblue | #02b6f7deepskyblue |
| Muted | #eff0f0whitesmoke | #0f1010black |
| Muted foreground | #4c5c61dimgray | #9eadb3darkgray |
| Accent | #0c002dblack | #0c002dblack |
| Accent foreground | #d6c7felavender | #d6c7felavender |
| Destructive | #5d2109maroon | #ed7140tomato |
| Destructive foreground | #f6baa2lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000b2dblack | #000b2dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 13.13:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 12.73:1 | AAA |
| Destructive | 7.39:1 | AAA |
| Text on background | 18.98:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 13.13:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 12.73:1 | AAA |
| Destructive | 7.03: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.137 0.033 264.749);
--muted: oklch(0.955 0.001 221.316);
--muted-foreground: oklch(0.462 0.021 221.821);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.126 0.029 263.603);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.029 263.603);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.167 0.073 261.936);
--primary-foreground: oklch(0.875 0.06 271.824);
--secondary: oklch(0.233 0.044 226.483);
--secondary-foreground: oklch(0.731 0.152 233.421);
--accent: oklch(0.153 0.087 286.318);
--accent-foreground: oklch(0.861 0.077 296.981);
--destructive: oklch(0.335 0.095 39.794);
--destructive-foreground: oklch(0.837 0.078 42.546);
--ring: oklch(0.167 0.073 261.936);
--chart-1: oklch(0.167 0.073 261.936);
--chart-2: oklch(0.233 0.044 226.483);
--chart-3: oklch(0.153 0.087 286.318);
--chart-4: oklch(0.276 0.054 228.375);
--chart-5: oklch(0.166 0.075 261.192);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.013 269.296);
--foreground: oklch(0.982 0.004 272.62);
--muted: oklch(0.17 0.002 221.412);
--muted-foreground: oklch(0.738 0.019 221.559);
--popover: oklch(0.147 0.016 270.649);
--popover-foreground: oklch(0.991 0.002 272.639);
--card: oklch(0.147 0.016 270.649);
--card-foreground: oklch(0.991 0.002 272.639);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.167 0.073 261.936);
--primary-foreground: oklch(0.875 0.06 271.824);
--secondary: oklch(0.233 0.044 226.483);
--secondary-foreground: oklch(0.731 0.152 233.421);
--accent: oklch(0.153 0.087 286.318);
--accent-foreground: oklch(0.861 0.077 296.981);
--destructive: oklch(0.688 0.166 41.084);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.167 0.073 261.936);
--chart-1: oklch(0.167 0.073 261.936);
--chart-2: oklch(0.233 0.044 226.483);
--chart-3: oklch(0.153 0.087 286.318);
--chart-4: oklch(0.276 0.054 228.375);
--chart-5: oklch(0.166 0.075 261.192);
}