Sash for shadcn/ui

Sash is a shadcn/ui theme built around a muted deep purple primary color (#372533) with muted deep cyan accents (#253337). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the muted deep purple primary (#372533) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#000000black
Foreground
#0e020bblack
#f9f5f8whitesmoke
Card
#fcf3falavenderblush
#030303black
Card foreground
#090107black
#fbf9fbsnow
Popover
#fcf3falavenderblush
#030303black
Popover foreground
#090107black
#fbf9fbsnow
Primary
#372533darkslategray
#372533darkslategray
Primary foreground
#d2bccdthistle
#d2bccdthistle
Secondary
#333725darkslategray
#333725darkslategray
Secondary foreground
#cdd2bcsilver
#cdd2bcsilver
Muted
#dee0d7gainsboro
#26281fdarkslategray
Muted foreground
#454644darkslategray
#bbbbb9silver
Accent
#253337darkslategray
#253337darkslategray
Accent foreground
#bccdd2lightsteelblue
#bccdd2lightsteelblue
Destructive
#792002maroon
#fb4204orangered
Destructive foreground
#fec2aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#372533darkslategray
#372533darkslategray

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card18.97:1AAA
Primary button8.02:1AAA
Secondary button7.89:1AAA
Muted text7.11:1AAA
Accent7.98:1AAA
Destructive6.74:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.73:1AAA
Primary button8.02:1AAA
Secondary button7.89:1AAA
Muted text7.74:1AAA
Accent7.98:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 333.375);
  --foreground: oklch(0.12 0.038 335.074);
  --muted: oklch(0.902 0.013 117.332);
  --muted-foreground: oklch(0.392 0.002 117.186);
  --popover: oklch(0.973 0.012 333.445);
  --popover-foreground: oklch(0.104 0.033 334.345);
  --card: oklch(0.973 0.012 333.445);
  --card-foreground: oklch(0.104 0.033 334.345);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.291 0.036 335.134);
  --primary-foreground: oklch(0.818 0.034 333.905);
  --secondary: oklch(0.327 0.031 118.836);
  --secondary-foreground: oklch(0.854 0.031 117.73);
  --accent: oklch(0.309 0.02 218.426);
  --accent-foreground: oklch(0.836 0.02 217.909);
  --destructive: oklch(0.384 0.128 36.467);
  --destructive-foreground: oklch(0.864 0.074 39.227);
  --ring: oklch(0.291 0.036 335.134);
  --chart-1: oklch(0.291 0.036 335.134);
  --chart-2: oklch(0.327 0.031 118.836);
  --chart-3: oklch(0.309 0.02 218.426);
  --chart-4: oklch(0.361 0.036 118.89);
  --chart-5: oklch(0.29 0.042 335.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.006 333.337);
  --muted: oklch(0.273 0.017 118.196);
  --muted-foreground: oklch(0.791 0.002 117.123);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.004 333.304);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.004 333.304);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.291 0.036 335.134);
  --primary-foreground: oklch(0.818 0.034 333.905);
  --secondary: oklch(0.327 0.031 118.836);
  --secondary-foreground: oklch(0.854 0.031 117.73);
  --accent: oklch(0.309 0.02 218.426);
  --accent-foreground: oklch(0.836 0.02 217.909);
  --destructive: oklch(0.651 0.228 34.793);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.291 0.036 335.134);
  --chart-1: oklch(0.291 0.036 335.134);
  --chart-2: oklch(0.327 0.031 118.836);
  --chart-3: oklch(0.309 0.02 218.426);
  --chart-4: oklch(0.361 0.036 118.89);
  --chart-5: oklch(0.29 0.042 335.406);
}