Samovar for shadcn/ui

Samovar is a shadcn/ui theme built around a muted pink primary color (#cbb3bd) with muted blue accents (#b3bdcb). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted pink primary (#cbb3bd) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdf7f9snow
#030202black
Foreground
#16040bblack
#fdfcfcsnow
Card
#fdf7f9snow
#030202black
Card foreground
#16040bblack
#fdfcfcsnow
Popover
#fdf7f9snow
#030202black
Popover foreground
#16040bblack
#fdfcfcsnow
Primary
#cbb3bdsilver
#cbb3bdsilver
Primary foreground
#2e1f25darkslategray
#2e1f25darkslategray
Secondary
#bdcbb3silver
#bdcbb3silver
Secondary foreground
#252e1fdarkslategray
#252e1fdarkslategray
Muted
#dfebd5gainsboro
#1d2a14black
Muted foreground
#474946darkslategray
#b7b9b6silver
Accent
#b3bdcbsilver
#b3bdcbsilver
Accent foreground
#1f252edarkslategray
#1f252edarkslategray
Destructive
#891506darkred
#f5260aorangered
Destructive foreground
#fdcbc4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cbb3bdsilver
#cbb3bdsilver

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button8.02:1AAA
Secondary button8.32:1AAA
Muted text7.36:1AAA
Accent8.13:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.02:1AAA
Secondary button8.32:1AAA
Muted text7.66:1AAA
Accent8.13:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 349.883);
  --foreground: oklch(0.145 0.039 353.722);
  --muted: oklch(0.926 0.032 132.014);
  --muted-foreground: oklch(0.402 0.005 131.83);
  --popover: oklch(0.981 0.007 349.883);
  --popover-foreground: oklch(0.145 0.039 353.722);
  --card: oklch(0.981 0.007 349.883);
  --card-foreground: oklch(0.145 0.039 353.722);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.791 0.031 350.736);
  --primary-foreground: oklch(0.259 0.025 352.198);
  --secondary: oklch(0.826 0.037 132.093);
  --secondary-foreground: oklch(0.286 0.028 132.591);
  --accent: oklch(0.796 0.023 256.747);
  --accent-foreground: oklch(0.262 0.018 256.814);
  --destructive: oklch(0.407 0.152 31.056);
  --destructive-foreground: oklch(0.883 0.058 27.011);
  --ring: oklch(0.791 0.031 350.736);
  --chart-1: oklch(0.791 0.031 350.736);
  --chart-2: oklch(0.826 0.037 132.093);
  --chart-3: oklch(0.796 0.023 256.747);
  --chart-4: oklch(0.847 0.032 132.038);
  --chart-5: oklch(0.789 0.036 350.905);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.01 349.455);
  --foreground: oklch(0.991 0.002 349.733);
  --muted: oklch(0.265 0.043 133.282);
  --muted-foreground: oklch(0.784 0.004 131.77);
  --popover: oklch(0.087 0.01 349.455);
  --popover-foreground: oklch(0.991 0.002 349.733);
  --card: oklch(0.087 0.01 349.455);
  --card-foreground: oklch(0.991 0.002 349.733);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.791 0.031 350.736);
  --primary-foreground: oklch(0.259 0.025 352.198);
  --secondary: oklch(0.826 0.037 132.093);
  --secondary-foreground: oklch(0.286 0.028 132.591);
  --accent: oklch(0.796 0.023 256.747);
  --accent-foreground: oklch(0.262 0.018 256.814);
  --destructive: oklch(0.62 0.239 30.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.791 0.031 350.736);
  --chart-1: oklch(0.791 0.031 350.736);
  --chart-2: oklch(0.826 0.037 132.093);
  --chart-3: oklch(0.796 0.023 256.747);
  --chart-4: oklch(0.847 0.032 132.038);
  --chart-5: oklch(0.789 0.036 350.905);
}