Father for shadcn/ui

Father is a shadcn/ui theme built around a muted deep orange primary color (#4f4940) with muted deep violet accents (#49404f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted deep orange primary (#4f4940) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080602black
Foreground
#040301black
#ffffffwhite
Card
#fdfbf7snow
#0c0904black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfbf7snow
#0c0904black
Popover foreground
#000000black
#ffffffwhite
Primary
#4f4940darkslategray
#4f4940darkslategray
Primary foreground
#e3e1ddgainsboro
#e3e1ddgainsboro
Secondary
#404f49darkslategray
#404f49darkslategray
Secondary foreground
#dde3e1gainsboro
#dde3e1gainsboro
Muted
#cae7dcgainsboro
#18352adarkslategray
Muted foreground
#3c4944darkslategray
#b6c3besilver
Accent
#49404fdarkslategray
#49404fdarkslategray
Accent foreground
#e1dde3gainsboro
#e1dde3gainsboro
Destructive
#ca2002firebrick
#ed2602orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f4940darkslategray
#4f4940darkslategray

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.28:1AAA
Primary button6.81:1AA
Secondary button6.66:1AA
Muted text7.18:1AAA
Accent7.33:1AAA
Destructive5.64:1AA
Dark mode
Text on background20.26:1AAA
Text on card19.91:1AAA
Primary button6.81:1AA
Secondary button6.66:1AA
Muted text7.31:1AAA
Accent7.33:1AAA
Destructive4.29:1AA Large

CSS variables

Paste this into your globals.css to use Father in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 79.929);
  --foreground: oklch(0.098 0.014 88.114);
  --muted: oklch(0.905 0.034 170.46);
  --muted-foreground: oklch(0.392 0.019 170.11);
  --popover: oklch(0.988 0.006 79.923);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 79.923);
  --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.408 0.016 79.799);
  --primary-foreground: oklch(0.911 0.006 79.923);
  --secondary: oklch(0.412 0.02 170.092);
  --secondary-foreground: oklch(0.912 0.007 171.36);
  --accent: oklch(0.387 0.026 312.523);
  --accent-foreground: oklch(0.903 0.009 312.916);
  --destructive: oklch(0.538 0.205 31.534);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.016 79.799);
  --chart-1: oklch(0.408 0.016 79.799);
  --chart-2: oklch(0.412 0.02 170.092);
  --chart-3: oklch(0.387 0.026 312.523);
  --chart-4: oklch(0.441 0.022 170.067);
  --chart-5: oklch(0.411 0.021 79.725);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.013 86.369);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.301 0.041 166.642);
  --muted-foreground: oklch(0.806 0.016 171.003);
  --popover: oklch(0.14 0.015 85.849);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.015 85.849);
  --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.408 0.016 79.799);
  --primary-foreground: oklch(0.911 0.006 79.923);
  --secondary: oklch(0.412 0.02 170.092);
  --secondary-foreground: oklch(0.912 0.007 171.36);
  --accent: oklch(0.387 0.026 312.523);
  --accent-foreground: oklch(0.903 0.009 312.916);
  --destructive: oklch(0.607 0.233 31.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.016 79.799);
  --chart-1: oklch(0.408 0.016 79.799);
  --chart-2: oklch(0.412 0.02 170.092);
  --chart-3: oklch(0.387 0.026 312.523);
  --chart-4: oklch(0.441 0.022 170.067);
  --chart-5: oklch(0.411 0.021 79.725);
}