Familiar is a shadcn/ui theme built around a muted deep red primary color (#100909) with muted deep teal accents (#091010). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#100909) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040101black |
| Foreground | #050101black | #fbf9f9snow |
| Card | #fcfcfcsnow | #080303black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #080303black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #100909black | #100909black |
| Primary foreground | #bd8f8frosybrown | #bd8f8frosybrown |
| Secondary | #091010black | #091010black |
| Secondary foreground | #8fbdbddarkgray | #8fbdbddarkgray |
| Muted | #dee3e3gainsboro | #1c2121black |
| Muted foreground | #5e5e5edimgray | #a1a1a1darkgray |
| Accent | #091010black | #091010black |
| Accent foreground | #8fbdbddarkgray | #8fbdbddarkgray |
| Destructive | #95370fsaddlebrown | #ea632achocolate |
| Destructive foreground | #fbe4daantiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #100909black | #100909black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 9.30:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 9.30:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 9.30:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 9.30:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Familiar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.078 0.021 23.431);
--muted: oklch(0.912 0.005 197.064);
--muted-foreground: oklch(0.483 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.151 0.012 18.547);
--primary-foreground: oklch(0.693 0.057 18.615);
--secondary: oklch(0.166 0.01 196.205);
--secondary-foreground: oklch(0.765 0.049 196.174);
--accent: oklch(0.166 0.01 196.205);
--accent-foreground: oklch(0.765 0.049 196.174);
--destructive: oklch(0.464 0.135 40.218);
--destructive-foreground: oklch(0.935 0.029 44.69);
--ring: oklch(0.151 0.012 18.547);
--chart-1: oklch(0.151 0.012 18.547);
--chart-2: oklch(0.166 0.01 196.205);
--chart-3: oklch(0.166 0.01 196.205);
--chart-4: oklch(0.206 0.015 196.028);
--chart-5: oklch(0.151 0.013 18.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.012 19.954);
--foreground: oklch(0.983 0.002 17.195);
--muted: oklch(0.243 0.007 196.688);
--muted-foreground: oklch(0.708 0 158.199);
--popover: oklch(0.105 0.015 19.954);
--popover-foreground: oklch(0.992 0.001 17.176);
--card: oklch(0.105 0.015 19.954);
--card-foreground: oklch(0.992 0.001 17.176);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.151 0.012 18.547);
--primary-foreground: oklch(0.693 0.057 18.615);
--secondary: oklch(0.166 0.01 196.205);
--secondary-foreground: oklch(0.765 0.049 196.174);
--accent: oklch(0.166 0.01 196.205);
--accent-foreground: oklch(0.765 0.049 196.174);
--destructive: oklch(0.662 0.18 41.172);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.151 0.012 18.547);
--chart-1: oklch(0.151 0.012 18.547);
--chart-2: oklch(0.166 0.01 196.205);
--chart-3: oklch(0.166 0.01 196.205);
--chart-4: oklch(0.206 0.015 196.028);
--chart-5: oklch(0.151 0.013 18.744);
}