Familiar is a shadcn/ui theme built around a deep yellow primary color (#18180c) with neutral gray accents (#d7d7d1). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the deep yellow primary (#18180c) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #070703black |
| Foreground | #080802black | #fdfdfcwhite |
| Card | #fafaf4floralwhite | #0a0a05black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fafaf4floralwhite | #0a0a05black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #18180cblack | #18180cblack |
| Primary foreground | #a0a24edarkkhaki | #a0a24edarkkhaki |
| Secondary | #e6e6e5gainsboro | #25251eblack |
| Secondary foreground | #4e4e4bdarkslategray | #c1c2b3silver |
| Muted | #f3f3e7linen | #18180cblack |
| Muted foreground | #575752dimgray | #adada8darkgray |
| Accent | #d7d7d1lightgrey | #454530darkslategray |
| Accent foreground | #3f3f37darkslategray | #dbdbcclightgrey |
| Destructive | #6d0a03maroon | #fa4538tomato |
| Destructive foreground | #fdaba5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #18180cblack | #18180cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Familiar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 107.268);
--foreground: oklch(0.132 0.019 109.385);
--muted: oklch(0.961 0.016 107.471);
--muted-foreground: oklch(0.454 0.008 107.49);
--popover: oklch(0.985 0.008 107.318);
--popover-foreground: oklch(0.105 0.015 109.385);
--card: oklch(0.985 0.008 107.318);
--card-foreground: oklch(0.105 0.015 109.385);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.205 0.023 109.078);
--primary-foreground: oklch(0.692 0.107 109.764);
--secondary: oklch(0.925 0.001 107.197);
--secondary-foreground: oklch(0.423 0.005 107.383);
--accent: oklch(0.876 0.008 107.34);
--accent-foreground: oklch(0.364 0.014 107.842);
--destructive: oklch(0.343 0.132 30.219);
--destructive-foreground: oklch(0.819 0.097 23.907);
--ring: oklch(0.205 0.023 109.078);
--chart-1: oklch(0.205 0.023 109.078);
--chart-2: oklch(0.925 0.001 107.197);
--chart-3: oklch(0.876 0.008 107.34);
--chart-4: oklch(0.947 0.001 107.188);
--chart-5: oklch(0.207 0.025 109.193);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.011 108.597);
--foreground: oklch(0.994 0.002 107.207);
--muted: oklch(0.204 0.022 109.038);
--muted-foreground: oklch(0.747 0.007 107.343);
--popover: oklch(0.144 0.013 108.598);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.013 108.598);
--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.205 0.023 109.078);
--primary-foreground: oklch(0.692 0.107 109.764);
--secondary: oklch(0.261 0.013 108.062);
--secondary-foreground: oklch(0.809 0.021 107.632);
--accent: oklch(0.385 0.034 108.689);
--accent-foreground: oklch(0.888 0.021 107.594);
--destructive: oklch(0.655 0.219 28.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.205 0.023 109.078);
--chart-1: oklch(0.205 0.023 109.078);
--chart-2: oklch(0.261 0.013 108.062);
--chart-3: oklch(0.385 0.034 108.689);
--chart-4: oklch(0.295 0.016 108.108);
--chart-5: oklch(0.207 0.025 109.193);
}