Worried for shadcn/ui

Worried is a shadcn/ui theme built around a light green primary color (#b3d8b1) with light purple accents (#d6b1d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#b3d8b1) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#020e02black
#ffffffwhite
Card
#fcfcfcsnow
#050b04black
Card foreground
#020901black
#ffffffwhite
Popover
#ffffffwhite
#030703black
Popover foreground
#020e02black
#ffffffwhite
Primary
#b3d8b1silver
#b3d8b1silver
Primary foreground
#1e3a1ddarkslategray
#1e3a1ddarkslategray
Secondary
#d6b1d8thistle
#d6b1d8thistle
Secondary foreground
#381d3adarkslategray
#381d3adarkslategray
Muted
#e3dee3gainsboro
#211c21black
Muted foreground
#5a485bdimgray
#b6a4b7darkgray
Accent
#d6b1d8thistle
#d6b1d8thistle
Accent foreground
#381d3adarkslategray
#381d3adarkslategray
Destructive
#8a1005darkred
#f84a3atomato
Destructive foreground
#fdc9c4pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3d8b1silver
#b3d8b1silver

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.71:1AAA
Primary button7.95:1AAA
Secondary button7.92:1AAA
Muted text6.28:1AA
Accent7.92:1AAA
Destructive6.65:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.89:1AAA
Primary button7.95:1AAA
Secondary button7.92:1AAA
Muted text7.16:1AAA
Accent7.92:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.037 141.8);
  --muted: oklch(0.906 0.008 324.183);
  --muted-foreground: oklch(0.428 0.04 324.646);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.037 141.8);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.032 141.772);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.844 0.066 143.661);
  --primary-foreground: oklch(0.317 0.06 142.964);
  --secondary: oklch(0.805 0.067 324.596);
  --secondary-foreground: oklch(0.28 0.063 325.273);
  --accent: oklch(0.805 0.067 324.596);
  --accent-foreground: oklch(0.28 0.063 325.273);
  --destructive: oklch(0.405 0.156 30.243);
  --destructive-foreground: oklch(0.879 0.06 24.379);
  --ring: oklch(0.844 0.066 143.661);
  --chart-1: oklch(0.844 0.066 143.661);
  --chart-2: oklch(0.805 0.067 324.596);
  --chart-3: oklch(0.805 0.067 324.596);
  --chart-4: oklch(0.83 0.058 324.523);
  --chart-5: oklch(0.847 0.072 143.62);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 142.839);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.234 0.012 324.411);
  --muted-foreground: oklch(0.74 0.035 324.397);
  --popover: oklch(0.121 0.018 142.839);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.021 142.841);
  --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.844 0.066 143.661);
  --primary-foreground: oklch(0.317 0.06 142.964);
  --secondary: oklch(0.805 0.067 324.596);
  --secondary-foreground: oklch(0.28 0.063 325.273);
  --accent: oklch(0.805 0.067 324.596);
  --accent-foreground: oklch(0.28 0.063 325.273);
  --destructive: oklch(0.656 0.213 29.263);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.844 0.066 143.661);
  --chart-1: oklch(0.844 0.066 143.661);
  --chart-2: oklch(0.805 0.067 324.596);
  --chart-3: oklch(0.805 0.067 324.596);
  --chart-4: oklch(0.83 0.058 324.523);
  --chart-5: oklch(0.847 0.072 143.62);
}