Liver for shadcn/ui

Liver is a shadcn/ui theme built around a muted orange primary color (#b9b0ac) with muted cyan accents (#acb5b9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#b9b0ac) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#0c0603black
#f9f7f6whitesmoke
Card
#ffffffwhite
#030202black
Card foreground
#0c0603black
#f9f7f6whitesmoke
Popover
#ffffffwhite
#030202black
Popover foreground
#0c0603black
#f9f7f6whitesmoke
Primary
#b9b0acdarkgray
#b9b0acdarkgray
Primary foreground
#1c1917black
#1c1917black
Secondary
#acb5b9darkgray
#acb5b9darkgray
Secondary foreground
#171a1cblack
#171a1cblack
Muted
#dae7eclavender
#132025black
Muted foreground
#55666ddimgray
#92a3aadarkgray
Accent
#acb5b9darkgray
#acb5b9darkgray
Accent foreground
#171a1cblack
#171a1cblack
Destructive
#9e2d00saddlebrown
#ff500aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b9b0acdarkgray
#b9b0acdarkgray

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button8.20:1AAA
Secondary button8.39:1AAA
Muted text4.72:1AA
Accent8.39:1AAA
Destructive7.42:1AAA
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button8.20:1AAA
Secondary button8.39:1AAA
Muted text6.39:1AA
Accent8.39:1AAA
Destructive3.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.016 53.016);
  --muted: oklch(0.919 0.016 225.185);
  --muted-foreground: oklch(0.498 0.023 225.607);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.016 53.016);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.016 53.016);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.763 0.013 44.819);
  --primary-foreground: oklch(0.215 0.006 44.727);
  --secondary: oklch(0.768 0.012 225.17);
  --secondary-foreground: oklch(0.217 0.006 225.299);
  --accent: oklch(0.768 0.012 225.17);
  --accent-foreground: oklch(0.217 0.006 225.299);
  --destructive: oklch(0.468 0.156 37.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.013 44.819);
  --chart-1: oklch(0.763 0.013 44.819);
  --chart-2: oklch(0.768 0.012 225.17);
  --chart-3: oklch(0.768 0.012 225.17);
  --chart-4: oklch(0.792 0.011 225.143);
  --chart-5: oklch(0.763 0.017 44.769);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.006 48.991);
  --foreground: oklch(0.977 0.002 44.957);
  --muted: oklch(0.233 0.021 226.592);
  --muted-foreground: oklch(0.704 0.021 225.358);
  --popover: oklch(0.091 0.006 48.991);
  --popover-foreground: oklch(0.977 0.002 44.957);
  --card: oklch(0.091 0.006 48.991);
  --card-foreground: oklch(0.977 0.002 44.957);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.763 0.013 44.819);
  --primary-foreground: oklch(0.215 0.006 44.727);
  --secondary: oklch(0.768 0.012 225.17);
  --secondary-foreground: oklch(0.217 0.006 225.299);
  --accent: oklch(0.768 0.012 225.17);
  --accent-foreground: oklch(0.217 0.006 225.299);
  --destructive: oklch(0.67 0.221 36.994);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.763 0.013 44.819);
  --chart-1: oklch(0.763 0.013 44.819);
  --chart-2: oklch(0.768 0.012 225.17);
  --chart-3: oklch(0.768 0.012 225.17);
  --chart-4: oklch(0.792 0.011 225.143);
  --chart-5: oklch(0.763 0.017 44.769);
}