Sari for shadcn/ui

Sari is a shadcn/ui theme built around a vivid light red primary color (#fee7e9) with muted light red accents (#d2c1c3). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the vivid light red primary (#fee7e9) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf6f7snow
#040101black
Foreground
#000000black
#fdfcfcsnow
Card
#fdf6f7snow
#040101black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf6f7snow
#040101black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fee7e9mistyrose
#fee7e9mistyrose
Primary foreground
#aa081bfirebrick
#aa081bfirebrick
Secondary
#e6e0e1gainsboro
#1c1c1cblack
Secondary foreground
#514344darkslategray
#b6b4b4silver
Muted
#f2edeewhitesmoke
#120d0dblack
Muted foreground
#403f3fdarkslategray
#c0bfbfsilver
Accent
#d2c1c3silver
#302728darkslategray
Accent foreground
#38292bdarkslategray
#cbbebfsilver
Destructive
#8b2104darkred
#f84716orangered
Destructive foreground
#fdd0c4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fee7e9mistyrose
#fee7e9mistyrose

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.44:1AA
Secondary button7.20:1AAA
Muted text9.06:1AAA
Accent7.98:1AAA
Destructive6.48:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.44:1AA
Secondary button8.26:1AAA
Muted text10.52:1AAA
Accent8.08:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 9.091);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.006 9.059);
  --muted-foreground: oklch(0.369 0.002 9.022);
  --popover: oklch(0.98 0.007 9.091);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 9.091);
  --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.946 0.026 9.548);
  --primary-foreground: oklch(0.469 0.186 25.182);
  --secondary: oklch(0.912 0.006 9.07);
  --secondary-foreground: oklch(0.397 0.021 10.13);
  --accent: oklch(0.825 0.02 9.468);
  --accent-foreground: oklch(0.298 0.023 10.767);
  --destructive: oklch(0.42 0.145 34.603);
  --destructive-foreground: oklch(0.893 0.054 35.959);
  --ring: oklch(0.946 0.026 9.548);
  --chart-1: oklch(0.946 0.026 9.548);
  --chart-2: oklch(0.912 0.006 9.07);
  --chart-3: oklch(0.825 0.02 9.468);
  --chart-4: oklch(0.936 0.004 9.023);
  --chart-5: oklch(0.946 0.026 9.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 10.052);
  --foreground: oklch(0.992 0.001 8.926);
  --muted: oklch(0.164 0.01 10.283);
  --muted-foreground: oklch(0.805 0.001 8.952);
  --popover: oklch(0.083 0.014 10.052);
  --popover-foreground: oklch(0.992 0.001 8.926);
  --card: oklch(0.083 0.014 10.052);
  --card-foreground: oklch(0.992 0.001 8.926);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.946 0.026 9.548);
  --primary-foreground: oklch(0.469 0.186 25.182);
  --secondary: oklch(0.226 0.001 9.001);
  --secondary-foreground: oklch(0.772 0.002 8.962);
  --accent: oklch(0.282 0.014 10.115);
  --accent-foreground: oklch(0.812 0.015 9.338);
  --destructive: oklch(0.651 0.22 34.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.026 9.548);
  --chart-1: oklch(0.946 0.026 9.548);
  --chart-2: oklch(0.226 0.001 9.001);
  --chart-3: oklch(0.282 0.014 10.115);
  --chart-4: oklch(0.258 0.001 9.008);
  --chart-5: oklch(0.946 0.026 9.57);
}