Sniveling for shadcn/ui

Sniveling is a shadcn/ui theme built around a purple primary color (#6a3968) with teal accents (#39686a). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#6a3968) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#110310black
#fbf9fasnow
Card
#fcfcfcsnow
#030303black
Card foreground
#0d030cblack
#fdfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#110310black
#fbf9fasnow
Primary
#6a3968dimgray
#6a3968dimgray
Primary foreground
#f1e4f0lavender
#f1e4f0lavender
Secondary
#686a39darkolivegreen
#686a39darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8e9e2gainsboro
#1c1d16black
Muted foreground
#5b5c47darkolivegreen
#b7b8a3darkgray
Accent
#39686adarkslategray
#39686adarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b53308firebrick
#f5450aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6a3968dimgray
#6a3968dimgray

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card19.84:1AAA
Primary button7.12:1AAA
Secondary button5.66:1AA
Muted text5.59:1AA
Accent6.27:1AA
Destructive6.09:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.20:1AAA
Primary button7.12:1AAA
Secondary button5.66:1AA
Muted text8.43:1AAA
Accent6.27:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.039 329.126);
  --muted: oklch(0.931 0.008 108.872);
  --muted-foreground: oklch(0.468 0.033 109.968);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.039 329.126);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.034 328.884);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.424 0.096 328.926);
  --primary-foreground: oklch(0.933 0.02 327.237);
  --secondary: oklch(0.51 0.07 111.133);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.484 0.051 199.994);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.516 0.173 35.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.096 328.926);
  --chart-1: oklch(0.424 0.096 328.926);
  --chart-2: oklch(0.51 0.07 111.133);
  --chart-3: oklch(0.484 0.051 199.994);
  --chart-4: oklch(0.544 0.075 111.154);
  --chart-5: oklch(0.424 0.104 329.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 327.057);
  --muted: oklch(0.226 0.011 109.627);
  --muted-foreground: oklch(0.776 0.029 109.399);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 327.057);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 327.048);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.424 0.096 328.926);
  --primary-foreground: oklch(0.933 0.02 327.237);
  --secondary: oklch(0.51 0.07 111.133);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.484 0.051 199.994);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.643 0.22 35.388);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.424 0.096 328.926);
  --chart-1: oklch(0.424 0.096 328.926);
  --chart-2: oklch(0.51 0.07 111.133);
  --chart-3: oklch(0.484 0.051 199.994);
  --chart-4: oklch(0.544 0.075 111.154);
  --chart-5: oklch(0.424 0.104 329.083);
}