Sniveling for shadcn/ui

Sniveling is a shadcn/ui theme built around a muted deep purple primary color (#1e151b) with muted deep red accents (#1e1517). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#1e151b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f8f6f8whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fbf9fasnow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fbf9fasnow
Primary
#1e151bblack
#1e151bblack
Primary foreground
#c0a5b8darkgray
#c0a5b8darkgray
Secondary
#1c151eblack
#1c151eblack
Secondary foreground
#bba5c0silver
#bba5c0silver
Muted
#f3f1f3whitesmoke
#0d0c0eblack
Muted foreground
#59455edimgray
#b5a1badarkgray
Accent
#1e1517black
#1e1517black
Accent foreground
#c0a5aadarkgray
#c0a5aadarkgray
Destructive
#61210amaroon
#ea602echocolate
Destructive foreground
#f6bca7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e151bblack
#1e151bblack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.90:1AAA
Secondary button7.87:1AAA
Muted text7.68:1AAA
Accent7.83:1AAA
Destructive7.29:1AAA
Dark mode
Text on background19.52:1AAA
Text on card19.72:1AAA
Primary button7.90:1AAA
Secondary button7.87:1AAA
Muted text8.15:1AAA
Accent7.83:1AAA
Destructive6.23:1AA

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 0 0);
  --muted: oklch(0.961 0.003 319.445);
  --muted-foreground: oklch(0.422 0.047 319.464);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.21 0.019 337.491);
  --primary-foreground: oklch(0.751 0.041 336.875);
  --secondary: oklch(0.209 0.021 319.465);
  --secondary-foreground: oklch(0.749 0.046 319.46);
  --accent: oklch(0.208 0.015 5.132);
  --accent-foreground: oklch(0.747 0.033 4.358);
  --destructive: oklch(0.343 0.099 38.674);
  --destructive-foreground: oklch(0.843 0.074 40.882);
  --ring: oklch(0.21 0.019 337.491);
  --chart-1: oklch(0.21 0.019 337.491);
  --chart-2: oklch(0.209 0.021 319.465);
  --chart-3: oklch(0.208 0.015 5.132);
  --chart-4: oklch(0.24 0.026 319.464);
  --chart-5: oklch(0.209 0.022 337.756);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.003 335.926);
  --muted: oklch(0.156 0.004 319.452);
  --muted-foreground: oklch(0.734 0.041 319.459);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.002 335.907);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 335.907);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.21 0.019 337.491);
  --primary-foreground: oklch(0.751 0.041 336.875);
  --secondary: oklch(0.209 0.021 319.465);
  --secondary-foreground: oklch(0.749 0.046 319.46);
  --accent: oklch(0.208 0.015 5.132);
  --accent-foreground: oklch(0.747 0.033 4.358);
  --destructive: oklch(0.659 0.182 39.098);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.21 0.019 337.491);
  --chart-1: oklch(0.21 0.019 337.491);
  --chart-2: oklch(0.209 0.021 319.465);
  --chart-3: oklch(0.208 0.015 5.132);
  --chart-4: oklch(0.24 0.026 319.464);
  --chart-5: oklch(0.209 0.022 337.756);
}