Sorrowful for shadcn/ui

Sorrowful is a shadcn/ui theme built around a vivid light red primary color (#fde7eb) with vivid light teal accents (#e7fdfa). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the vivid light red primary (#fde7eb) on a red-tinted background (#0f0507).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0f0507black
Foreground
#100406black
#ffffffwhite
Card
#fdf7f8snow
#0f0507black
Card foreground
#100406black
#ffffffwhite
Popover
#fdf7f8snow
#0f0507black
Popover foreground
#100406black
#ffffffwhite
Primary
#fde7ebmistyrose
#fde7ebmistyrose
Primary foreground
#a50d24firebrick
#a50d24firebrick
Secondary
#e7fdfalightcyan
#e7fdfalightcyan
Secondary foreground
#06473ddarkslategray
#06473ddarkslategray
Muted
#e9ececlavender
#131616black
Muted foreground
#49504fdarkslategray
#afb6b5darkgray
Accent
#e7fdfalightcyan
#e7fdfalightcyan
Accent foreground
#06473ddarkslategray
#06473ddarkslategray
Destructive
#8b2b0esaddlebrown
#ea5a2echocolate
Destructive foreground
#fadad1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fde7ebmistyrose
#fde7ebmistyrose

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button6.65:1AA
Secondary button10.04:1AAA
Muted text6.95:1AA
Accent10.04:1AAA
Destructive6.52:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.06:1AAA
Primary button6.65:1AA
Secondary button10.04:1AAA
Muted text8.82:1AAA
Accent10.04:1AAA
Destructive6.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 6.746);
  --foreground: oklch(0.133 0.025 8.517);
  --muted: oklch(0.941 0.004 186.499);
  --muted-foreground: oklch(0.425 0.01 185.99);
  --popover: oklch(0.981 0.006 6.746);
  --popover-foreground: oklch(0.133 0.025 8.517);
  --card: oklch(0.981 0.006 6.746);
  --card-foreground: oklch(0.133 0.025 8.517);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.024 7.23);
  --primary-foreground: oklch(0.461 0.179 22.547);
  --secondary: oklch(0.978 0.023 185.99);
  --secondary-foreground: oklch(0.357 0.062 179.245);
  --accent: oklch(0.978 0.023 185.99);
  --accent-foreground: oklch(0.357 0.062 179.245);
  --destructive: oklch(0.432 0.136 36.215);
  --destructive-foreground: oklch(0.913 0.038 37.608);
  --ring: oklch(0.948 0.024 7.23);
  --chart-1: oklch(0.948 0.024 7.23);
  --chart-2: oklch(0.978 0.023 185.99);
  --chart-3: oklch(0.978 0.023 185.99);
  --chart-4: oklch(0.991 0.009 186.357);
  --chart-5: oklch(0.947 0.025 7.253);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.02 8.077);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.197 0.005 185.918);
  --muted-foreground: oklch(0.771 0.009 186.307);
  --popover: oklch(0.135 0.02 8.077);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.02 8.077);
  --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.948 0.024 7.23);
  --primary-foreground: oklch(0.461 0.179 22.547);
  --secondary: oklch(0.978 0.023 185.99);
  --secondary-foreground: oklch(0.357 0.062 179.245);
  --accent: oklch(0.978 0.023 185.99);
  --accent-foreground: oklch(0.357 0.062 179.245);
  --destructive: oklch(0.651 0.188 36.926);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.948 0.024 7.23);
  --chart-1: oklch(0.948 0.024 7.23);
  --chart-2: oklch(0.978 0.023 185.99);
  --chart-3: oklch(0.978 0.023 185.99);
  --chart-4: oklch(0.991 0.009 186.357);
  --chart-5: oklch(0.947 0.025 7.253);
}