Serval for shadcn/ui

Serval is a shadcn/ui theme built around a muted cyan primary color (#a6b9bf) with muted light cyan accents (#e5eaeb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#a6b9bf) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020303black
Foreground
#031217black
#f6f8f9whitesmoke
Card
#f6fcfdmintcream
#040607black
Card foreground
#020e12black
#f9fafbghostwhite
Popover
#f6fcfdmintcream
#040607black
Popover foreground
#020e12black
#f9fafbghostwhite
Primary
#a6b9bfsilver
#a6b9bfsilver
Primary foreground
#151c1eblack
#151c1eblack
Secondary
#e5eaeblavender
#252727darkslategray
Secondary foreground
#43555bdarkslategray
#bec0c1silver
Muted
#e3e7e8gainsboro
#171b1cblack
Muted foreground
#43555bdarkslategray
#a4b6bcdarkgray
Accent
#e5eaeblavender
#252727darkslategray
Accent foreground
#43555bdarkslategray
#bec0c1silver
Destructive
#61200amaroon
#ea5d2echocolate
Destructive foreground
#f6bba7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a6b9bfsilver
#a6b9bfsilver

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.83:1AAA
Primary button8.45:1AAA
Secondary button6.42:1AA
Muted text6.25:1AA
Accent6.42:1AA
Destructive7.31:1AAA
Dark mode
Text on background19.39:1AAA
Text on card19.45:1AAA
Primary button8.45:1AAA
Secondary button8.24:1AAA
Muted text8.28:1AAA
Accent8.24:1AAA
Destructive6.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 219.529);
  --foreground: oklch(0.169 0.025 219.854);
  --muted: oklch(0.924 0.004 219.535);
  --muted-foreground: oklch(0.437 0.024 220.112);
  --popover: oklch(0.987 0.006 219.552);
  --popover-foreground: oklch(0.154 0.022 217.944);
  --card: oklch(0.987 0.006 219.552);
  --card-foreground: oklch(0.154 0.022 217.944);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.772 0.022 219.758);
  --primary-foreground: oklch(0.219 0.01 219.965);
  --secondary: oklch(0.933 0.006 219.555);
  --secondary-foreground: oklch(0.437 0.024 220.112);
  --accent: oklch(0.933 0.006 219.555);
  --accent-foreground: oklch(0.437 0.024 220.112);
  --destructive: oklch(0.341 0.101 37.617);
  --destructive-foreground: oklch(0.84 0.075 39.224);
  --ring: oklch(0.772 0.022 219.758);
  --chart-1: oklch(0.772 0.022 219.758);
  --chart-2: oklch(0.933 0.006 219.555);
  --chart-3: oklch(0.933 0.006 219.555);
  --chart-4: oklch(0.955 0.004 219.538);
  --chart-5: oklch(0.774 0.026 219.816);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.005 216.629);
  --foreground: oklch(0.978 0.003 219.528);
  --muted: oklch(0.217 0.005 219.704);
  --muted-foreground: oklch(0.764 0.021 219.753);
  --popover: oklch(0.118 0.007 216.629);
  --popover-foreground: oklch(0.985 0.002 219.521);
  --card: oklch(0.118 0.007 216.629);
  --card-foreground: oklch(0.985 0.002 219.521);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.772 0.022 219.758);
  --primary-foreground: oklch(0.219 0.01 219.965);
  --secondary: oklch(0.27 0.002 219.557);
  --secondary-foreground: oklch(0.806 0.002 219.528);
  --accent: oklch(0.27 0.002 219.557);
  --accent-foreground: oklch(0.806 0.002 219.528);
  --destructive: oklch(0.655 0.185 37.986);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.772 0.022 219.758);
  --chart-1: oklch(0.772 0.022 219.758);
  --chart-2: oklch(0.27 0.002 219.557);
  --chart-3: oklch(0.27 0.002 219.557);
  --chart-4: oklch(0.301 0.002 219.559);
  --chart-5: oklch(0.774 0.026 219.816);
}