Sniveling for shadcn/ui

Sniveling is a shadcn/ui theme built around a vivid deep red primary color (#36020c) with vivid deep orange accents (#361202). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid deep red primary (#36020c) on a red-tinted background (#0c0305).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0c0305black
Foreground
#090203black
#ffffffwhite
Card
#fbf4f5lavenderblush
#100407black
Card foreground
#040102black
#ffffffwhite
Popover
#fcf8f8snow
#0c0305black
Popover foreground
#090203black
#ffffffwhite
Primary
#36020cblack
#36020cblack
Primary foreground
#fa708clightcoral
#fa708clightcoral
Secondary
#360226black
#360226black
Secondary foreground
#fa70d1hotpink
#fa70d1hotpink
Muted
#f2edf1whitesmoke
#120d10black
Muted foreground
#484748darkslategray
#b8b7b8silver
Accent
#361202black
#361202black
Accent foreground
#fa9a70lightsalmon
#fa9a70lightsalmon
Destructive
#9c160ddarkred
#e22012crimson
Destructive foreground
#fce0demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#36020cblack
#36020cblack

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.13:1AAA
Primary button6.62:1AA
Secondary button6.94:1AA
Muted text8.01:1AAA
Accent7.98:1AAA
Destructive6.66:1AA
Dark mode
Text on background20.36:1AAA
Text on card20.13:1AAA
Primary button6.62:1AA
Secondary button6.94:1AA
Muted text9.63:1AAA
Accent7.98:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 3.326);
  --foreground: oklch(0.102 0.023 3.526);
  --muted: oklch(0.952 0.007 336.005);
  --muted-foreground: oklch(0.398 0.003 335.987);
  --popover: oklch(0.982 0.005 3.326);
  --popover-foreground: oklch(0.102 0.023 3.526);
  --card: oklch(0.972 0.008 3.4);
  --card-foreground: oklch(0.081 0.018 3.526);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.215 0.081 15.413);
  --primary-foreground: oklch(0.718 0.169 9.943);
  --secondary: oklch(0.226 0.092 343.55);
  --secondary-foreground: oklch(0.741 0.199 340.591);
  --accent: oklch(0.236 0.065 43.748);
  --accent-foreground: oklch(0.775 0.129 43.673);
  --destructive: oklch(0.444 0.168 29.639);
  --destructive-foreground: oklch(0.929 0.031 22.622);
  --ring: oklch(0.215 0.081 15.413);
  --chart-1: oklch(0.215 0.081 15.413);
  --chart-2: oklch(0.226 0.092 343.55);
  --chart-3: oklch(0.236 0.065 43.748);
  --chart-4: oklch(0.263 0.108 344.271);
  --chart-5: oklch(0.216 0.084 15.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.023 3.713);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.166 0.011 337.041);
  --muted-foreground: oklch(0.781 0.002 335.919);
  --popover: oklch(0.119 0.023 3.713);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.026 4.876);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.215 0.081 15.413);
  --primary-foreground: oklch(0.718 0.169 9.943);
  --secondary: oklch(0.226 0.092 343.55);
  --secondary-foreground: oklch(0.741 0.199 340.591);
  --accent: oklch(0.236 0.065 43.748);
  --accent-foreground: oklch(0.775 0.129 43.673);
  --destructive: oklch(0.584 0.225 29.718);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.215 0.081 15.413);
  --chart-1: oklch(0.215 0.081 15.413);
  --chart-2: oklch(0.226 0.092 343.55);
  --chart-3: oklch(0.236 0.065 43.748);
  --chart-4: oklch(0.263 0.108 344.271);
  --chart-5: oklch(0.216 0.084 15.7);
}