Familiar is a shadcn/ui theme built around a muted deep green primary color (#313e23) with muted deep green accents (#243e23). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#313e23) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #030401black |
| Foreground | #0b1004black | #ffffffwhite |
| Card | #fafcf8snow | #030401black |
| Card foreground | #0b1004black | #ffffffwhite |
| Popover | #fafcf8snow | #030401black |
| Popover foreground | #0b1004black | #ffffffwhite |
| Primary | #313e23darkslategray | #313e23darkslategray |
| Primary foreground | #cad8bblightgrey | #cad8bblightgrey |
| Secondary | #3e3d23darkslategray | #3e3d23darkslategray |
| Secondary foreground | #d8d7bblightgrey | #d8d7bblightgrey |
| Muted | #f4f4ecwhitesmoke | #13130bblack |
| Muted foreground | #43433ddarkslategray | #c2c2bcsilver |
| Accent | #243e23darkslategray | #243e23darkslategray |
| Accent foreground | #bcd8bbsilver | #bcd8bbsilver |
| Destructive | #9d1310darkred | #eb4542tomato |
| Destructive foreground | #fce4e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #313e23darkslategray | #313e23darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.65:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 10.40:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Familiar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 127.181);
--foreground: oklch(0.164 0.028 127.693);
--muted: oklch(0.964 0.011 104.999);
--muted-foreground: oklch(0.38 0.01 105.269);
--popover: oklch(0.988 0.006 127.181);
--popover-foreground: oklch(0.164 0.028 127.693);
--card: oklch(0.988 0.006 127.181);
--card-foreground: oklch(0.164 0.028 127.693);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.343 0.046 128.939);
--primary-foreground: oklch(0.864 0.042 127.716);
--secondary: oklch(0.352 0.04 106.597);
--secondary-foreground: oklch(0.872 0.037 105.532);
--accent: oklch(0.333 0.055 143.49);
--accent-foreground: oklch(0.853 0.05 144.237);
--destructive: oklch(0.445 0.171 28.355);
--destructive-foreground: oklch(0.938 0.027 18.811);
--ring: oklch(0.343 0.046 128.939);
--chart-1: oklch(0.343 0.046 128.939);
--chart-2: oklch(0.352 0.04 106.597);
--chart-3: oklch(0.333 0.055 143.49);
--chart-4: oklch(0.388 0.045 106.634);
--chart-5: oklch(0.347 0.051 129.137);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.013 126.253);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.015 106.156);
--muted-foreground: oklch(0.813 0.009 104.99);
--popover: oklch(0.099 0.013 126.253);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.013 126.253);
--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.343 0.046 128.939);
--primary-foreground: oklch(0.864 0.042 127.716);
--secondary: oklch(0.352 0.04 106.597);
--secondary-foreground: oklch(0.872 0.037 105.532);
--accent: oklch(0.333 0.055 143.49);
--accent-foreground: oklch(0.853 0.05 144.237);
--destructive: oklch(0.631 0.204 26.013);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.343 0.046 128.939);
--chart-1: oklch(0.343 0.046 128.939);
--chart-2: oklch(0.352 0.04 106.597);
--chart-3: oklch(0.333 0.055 143.49);
--chart-4: oklch(0.388 0.045 106.634);
--chart-5: oklch(0.347 0.051 129.137);
}