Sniveling for shadcn/ui

Sniveling is a shadcn/ui theme built around a muted light violet primary color (#e1dde4) with muted violet accents (#c1b3cc). The light mode uses a neutral background (#faf7fd). Dark mode keeps the muted light violet primary (#e1dde4) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#08040bblack
Foreground
#0b0312black
#f8f6f9whitesmoke
Card
#faf7fdghostwhite
#08040bblack
Card foreground
#0b0312black
#f8f6f9whitesmoke
Popover
#faf7fdghostwhite
#08040bblack
Popover foreground
#0b0312black
#f8f6f9whitesmoke
Primary
#e1dde4gainsboro
#e1dde4gainsboro
Primary foreground
#493f50darkslategray
#493f50darkslategray
Secondary
#cdc4d4thistle
#1f1c21black
Secondary foreground
#342b3bdarkslategray
#b8b2bdsilver
Muted
#ece3f2lavender
#150d1cblack
Muted foreground
#48414edarkslategray
#b8b1besilver
Accent
#c1b3ccsilver
#392f42darkslategray
Accent foreground
#271f2edarkslategray
#d2c9d9thistle
Destructive
#5c140amaroon
#e94a35tomato
Destructive foreground
#f5ada3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1dde4gainsboro
#e1dde4gainsboro

Contrast

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

Light mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button7.40:1AAA
Secondary button8.02:1AAA
Muted text7.84:1AAA
Accent7.97:1AAA
Destructive7.32:1AAA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button7.40:1AAA
Secondary button8.12:1AAA
Muted text9.10:1AAA
Accent7.92:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 311.01);
  --foreground: oklch(0.125 0.041 311.191);
  --muted: oklch(0.927 0.023 310.871);
  --muted-foreground: oklch(0.387 0.023 310.561);
  --popover: oklch(0.98 0.008 311.01);
  --popover-foreground: oklch(0.125 0.041 311.191);
  --card: oklch(0.98 0.008 311.01);
  --card-foreground: oklch(0.125 0.041 311.191);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.902 0.011 310.98);
  --primary-foreground: oklch(0.384 0.031 310.379);
  --secondary: oklch(0.833 0.023 310.844);
  --secondary-foreground: oklch(0.306 0.029 310.249);
  --accent: oklch(0.785 0.039 310.655);
  --accent-foreground: oklch(0.255 0.031 310.029);
  --destructive: oklch(0.315 0.106 30.945);
  --destructive-foreground: oklch(0.813 0.086 27.508);
  --ring: oklch(0.902 0.011 310.98);
  --chart-1: oklch(0.902 0.011 310.98);
  --chart-2: oklch(0.833 0.023 310.844);
  --chart-3: oklch(0.785 0.039 310.655);
  --chart-4: oklch(0.859 0.019 310.888);
  --chart-5: oklch(0.901 0.014 310.953);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.022 312.43);
  --foreground: oklch(0.975 0.004 311.053);
  --muted: oklch(0.178 0.034 309.373);
  --muted-foreground: oklch(0.771 0.02 310.862);
  --popover: oklch(0.12 0.022 312.43);
  --popover-foreground: oklch(0.975 0.004 311.053);
  --card: oklch(0.12 0.022 312.43);
  --card-foreground: oklch(0.975 0.004 311.053);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.902 0.011 310.98);
  --primary-foreground: oklch(0.384 0.031 310.379);
  --secondary: oklch(0.232 0.01 310.706);
  --secondary-foreground: oklch(0.772 0.018 310.887);
  --accent: oklch(0.323 0.036 310.109);
  --accent-foreground: oklch(0.849 0.023 310.845);
  --destructive: oklch(0.63 0.199 30.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.902 0.011 310.98);
  --chart-1: oklch(0.902 0.011 310.98);
  --chart-2: oklch(0.232 0.01 310.706);
  --chart-3: oklch(0.323 0.036 310.109);
  --chart-4: oklch(0.263 0.012 310.68);
  --chart-5: oklch(0.901 0.014 310.953);
}