Worried for shadcn/ui

Worried is a shadcn/ui theme built around a light red primary color (#f6ebe9) with muted light red accents (#cfc0be). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#f6ebe9) on a red-tinted background (#0c0504).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0c0504black
Foreground
#140706black
#faf5f5whitesmoke
Card
#fefbfbsnow
#0c0504black
Card foreground
#140706black
#faf5f5whitesmoke
Popover
#fefbfbsnow
#0c0504black
Popover foreground
#140706black
#faf5f5whitesmoke
Primary
#f6ebe9linen
#f6ebe9linen
Primary foreground
#7a3b33saddlebrown
#7a3b33saddlebrown
Secondary
#e3dfdegainsboro
#282525darkslategray
Secondary foreground
#4d4342darkslategray
#c2bdbdsilver
Muted
#e5e1e1gainsboro
#1e1b1ablack
Muted foreground
#524d4cdarkslategray
#b3aeaddarkgray
Accent
#cfc0besilver
#382f2edarkslategray
Accent foreground
#352927darkslategray
#d1c8c7lightgrey
Destructive
#b94304firebrick
#fb752dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6ebe9linen
#f6ebe9linen

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button7.18:1AAA
Secondary button7.20:1AAA
Muted text6.43:1AA
Accent8.00:1AAA
Destructive5.42:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button7.18:1AAA
Secondary button8.18:1AAA
Muted text7.82:1AAA
Accent7.91:1AAA
Destructive7.67:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 26.461);
  --foreground: oklch(0.15 0.024 30.338);
  --muted: oklch(0.914 0.004 26.468);
  --muted-foreground: oklch(0.424 0.008 26.566);
  --popover: oklch(0.991 0.003 26.461);
  --popover-foreground: oklch(0.15 0.024 30.338);
  --card: oklch(0.991 0.003 26.461);
  --card-foreground: oklch(0.15 0.024 30.338);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.012 26.529);
  --primary-foreground: oklch(0.433 0.089 29.01);
  --secondary: oklch(0.905 0.005 26.475);
  --secondary-foreground: oklch(0.393 0.014 26.718);
  --accent: oklch(0.821 0.017 26.59);
  --accent-foreground: oklch(0.293 0.019 26.991);
  --destructive: oklch(0.541 0.164 41.231);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.948 0.012 26.529);
  --chart-1: oklch(0.948 0.012 26.529);
  --chart-2: oklch(0.905 0.005 26.475);
  --chart-3: oklch(0.821 0.017 26.59);
  --chart-4: oklch(0.929 0.004 26.466);
  --chart-5: oklch(0.948 0.013 26.536);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.016 31.175);
  --foreground: oklch(0.975 0.005 26.472);
  --muted: oklch(0.224 0.006 26.621);
  --muted-foreground: oklch(0.754 0.006 26.498);
  --popover: oklch(0.124 0.016 31.175);
  --popover-foreground: oklch(0.975 0.005 26.472);
  --card: oklch(0.124 0.016 31.175);
  --card-foreground: oklch(0.975 0.005 26.472);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.948 0.012 26.529);
  --primary-foreground: oklch(0.433 0.089 29.01);
  --secondary: oklch(0.268 0.004 26.547);
  --secondary-foreground: oklch(0.803 0.005 26.483);
  --accent: oklch(0.315 0.013 26.778);
  --accent-foreground: oklch(0.84 0.01 26.524);
  --destructive: oklch(0.711 0.182 45.062);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.948 0.012 26.529);
  --chart-1: oklch(0.948 0.012 26.529);
  --chart-2: oklch(0.268 0.004 26.547);
  --chart-3: oklch(0.315 0.013 26.778);
  --chart-4: oklch(0.298 0.005 26.552);
  --chart-5: oklch(0.948 0.013 26.536);
}