Worried for shadcn/ui

Worried is a shadcn/ui theme built around a vivid deep indigo primary color (#14015b) with muted light indigo accents (#e9e8ed). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#14015b) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#040307black
Foreground
#000000black
#fcfcfdwhite
Card
#fbfbfeghostwhite
#040307black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fbfbfeghostwhite
#040307black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#14015bmidnightblue
#14015bmidnightblue
Primary foreground
#a890femediumpurple
#a890femediumpurple
Secondary
#e9e8edlavender
#1a1820black
Secondary foreground
#4b465ddarkslategray
#b0abbfdarkgray
Muted
#e6e4eclavender
#15131bblack
Muted foreground
#5c5671dimgray
#948ea9lightslategray
Accent
#e9e8edlavender
#1a1820black
Accent foreground
#4b465ddarkslategray
#b0abbfdarkgray
Destructive
#d00d06firebrick
#f8231borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#14015bmidnightblue
#14015bmidnightblue

Contrast

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

Light mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button6.82:1AA
Secondary button7.37:1AAA
Muted text5.52:1AA
Accent7.37:1AAA
Destructive5.62:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button6.82:1AA
Secondary button7.86:1AAA
Muted text5.86:1AA
Accent7.86:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 296.244);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.01 296.133);
  --muted-foreground: oklch(0.468 0.045 294.53);
  --popover: oklch(0.989 0.005 296.244);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.005 296.244);
  --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.228 0.139 276.611);
  --primary-foreground: oklch(0.72 0.157 291.943);
  --secondary: oklch(0.933 0.008 296.179);
  --secondary-foreground: oklch(0.409 0.038 294.583);
  --accent: oklch(0.933 0.008 296.179);
  --accent-foreground: oklch(0.409 0.038 294.583);
  --destructive: oklch(0.541 0.217 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.228 0.139 276.611);
  --chart-1: oklch(0.228 0.139 276.611);
  --chart-2: oklch(0.933 0.008 296.179);
  --chart-3: oklch(0.933 0.008 296.179);
  --chart-4: oklch(0.958 0.005 296.239);
  --chart-5: oklch(0.227 0.143 275.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.012 295.944);
  --foreground: oklch(0.992 0.001 296.315);
  --muted: oklch(0.193 0.015 294.907);
  --muted-foreground: oklch(0.66 0.041 295.174);
  --popover: oklch(0.106 0.012 295.944);
  --popover-foreground: oklch(0.992 0.001 296.315);
  --card: oklch(0.106 0.012 295.944);
  --card-foreground: oklch(0.992 0.001 296.315);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.228 0.139 276.611);
  --primary-foreground: oklch(0.72 0.157 291.943);
  --secondary: oklch(0.216 0.014 295.104);
  --secondary-foreground: oklch(0.752 0.028 295.658);
  --accent: oklch(0.216 0.014 295.104);
  --accent-foreground: oklch(0.752 0.028 295.658);
  --destructive: oklch(0.625 0.242 28.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.228 0.139 276.611);
  --chart-1: oklch(0.228 0.139 276.611);
  --chart-2: oklch(0.216 0.014 295.104);
  --chart-3: oklch(0.216 0.014 295.104);
  --chart-4: oklch(0.246 0.018 295.001);
  --chart-5: oklch(0.227 0.143 275.866);
}