Father is a shadcn/ui theme built around a cyan primary color (#77a5b6) with blue accents (#7786b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#77a5b6) on a cyan-tinted background (#04090b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04090bblack |
| Foreground | #020708black | #ffffffwhite |
| Card | #ffffffwhite | #04090bblack |
| Card foreground | #020708black | #ffffffwhite |
| Popover | #ffffffwhite | #04090bblack |
| Popover foreground | #020708black | #ffffffwhite |
| Primary | #77a5b6cadetblue | #77a5b6cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #77b6a7mediumaquamarine | #77b6a7mediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #cce5dfgainsboro | #1a332ddarkslategray |
| Muted foreground | #424846darkslategray | #b7bdbcsilver |
| Accent | #7786b6lightslategray | #7786b6lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #912903saddlebrown | #fb6b37tomato |
| Destructive foreground | #fed6c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #77a5b6cadetblue | #77a5b6cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 9.02:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 5.85:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 9.02:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 5.85:1 | AA |
| Destructive | 7.26:1 | AAA |
Paste this into your globals.css to use Father in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.013 215.937);
--muted: oklch(0.903 0.028 180.067);
--muted-foreground: oklch(0.395 0.008 180.414);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.013 215.937);
--card: oklch(1 0 180);
--card-foreground: oklch(0.119 0.013 215.937);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.695 0.055 222.47);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.729 0.068 177.941);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.626 0.075 271.07);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.44 0.145 36.811);
--destructive-foreground: oklch(0.907 0.049 40.992);
--ring: oklch(0.695 0.055 222.47);
--chart-1: oklch(0.695 0.055 222.47);
--chart-2: oklch(0.729 0.068 177.941);
--chart-3: oklch(0.626 0.075 271.07);
--chart-4: oklch(0.749 0.064 178.275);
--chart-5: oklch(0.698 0.06 222.639);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.012 217.33);
--foreground: oklch(1 0 180);
--muted: oklch(0.298 0.033 177.172);
--muted-foreground: oklch(0.793 0.006 180.733);
--popover: oklch(0.135 0.012 217.33);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.012 217.33);
--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.695 0.055 222.47);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.729 0.068 177.941);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.626 0.075 271.07);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.699 0.188 39.325);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.695 0.055 222.47);
--chart-1: oklch(0.695 0.055 222.47);
--chart-2: oklch(0.729 0.068 177.941);
--chart-3: oklch(0.626 0.075 271.07);
--chart-4: oklch(0.749 0.064 178.275);
--chart-5: oklch(0.698 0.06 222.639);
}