Familiar for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button7.01:1AAA
Secondary button9.30:1AAA
Muted text4.99:1AA
Accent9.30:1AAA
Destructive6.10:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.06:1AAA
Primary button7.01:1AAA
Secondary button9.30:1AAA
Muted text6.30:1AA
Accent9.30:1AAA
Destructive6.32:1AA

CSS variables

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);
}