Worrisome for shadcn/ui

Worrisome is a shadcn/ui theme built around a red primary color (#dd2229) with indigo accents (#2229dd). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#dd2229) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0e0707black
Foreground
#040101black
#fdfcfcsnow
Card
#fefbfbsnow
#0e0707black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fefbfbsnow
#0e0707black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#dd2229crimson
#dd2229crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#29dd22limegreen
#29dd22limegreen
Secondary foreground
#082c07black
#082c07black
Muted
#e5f1e5beige
#0f1a0eblack
Muted foreground
#394739darkslategray
#b9c6b8silver
Accent
#2229ddmediumblue
#2229ddmediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c93803firebrick
#fb4909orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dd2229crimson
#dd2229crimson

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button4.85:1AA
Secondary button8.30:1AAA
Muted text8.42:1AAA
Accent8.67:1AAA
Destructive5.19:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button4.85:1AA
Secondary button8.30:1AAA
Muted text10.05:1AAA
Accent8.67:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 14.857);
  --foreground: oklch(0.083 0.014 17.323);
  --muted: oklch(0.945 0.02 144.483);
  --muted-foreground: oklch(0.38 0.029 144.108);
  --popover: oklch(0.99 0.004 14.857);
  --popover-foreground: oklch(0.083 0.014 17.323);
  --card: oklch(0.99 0.004 14.857);
  --card-foreground: oklch(0.083 0.014 17.323);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.576 0.217 26.349);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.253 142.418);
  --secondary-foreground: oklch(0.259 0.074 142.532);
  --accent: oklch(0.44 0.257 268.195);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.555 0.189 35.961);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.217 26.349);
  --chart-1: oklch(0.576 0.217 26.349);
  --chart-2: oklch(0.78 0.253 142.418);
  --chart-3: oklch(0.44 0.257 268.195);
  --chart-4: oklch(0.789 0.247 142.461);
  --chart-5: oklch(0.581 0.223 26.76);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 16.279);
  --foreground: oklch(0.992 0.001 14.801);
  --muted: oklch(0.204 0.028 143.673);
  --muted-foreground: oklch(0.813 0.024 144.423);
  --popover: oklch(0.138 0.013 16.279);
  --popover-foreground: oklch(0.992 0.001 14.801);
  --card: oklch(0.138 0.013 16.279);
  --card-foreground: oklch(0.992 0.001 14.801);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.576 0.217 26.349);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.253 142.418);
  --secondary-foreground: oklch(0.259 0.074 142.532);
  --accent: oklch(0.44 0.257 268.195);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.222 36.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.217 26.349);
  --chart-1: oklch(0.576 0.217 26.349);
  --chart-2: oklch(0.78 0.253 142.418);
  --chart-3: oklch(0.44 0.257 268.195);
  --chart-4: oklch(0.789 0.247 142.461);
  --chart-5: oklch(0.581 0.223 26.76);
}