Worried for shadcn/ui

Worried is a shadcn/ui theme built around a light green primary color (#f0f3e7) with light green accents (#eaf3e7). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#f0f3e7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#030401black
#fdfdfcwhite
Card
#fbfcf8snow
#000000black
Card foreground
#030401black
#fdfdfcwhite
Popover
#fbfcf8snow
#000000black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#f0f3e7linen
#f0f3e7linen
Primary foreground
#272d16black
#272d16black
Secondary
#f3f0e7linen
#f3f0e7linen
Secondary foreground
#2d2716black
#2d2716black
Muted
#f2f1eewhitesmoke
#11100dblack
Muted foreground
#464339darkslategray
#c6c2b9silver
Accent
#eaf3e7beige
#eaf3e7beige
Accent foreground
#1c2d16black
#1c2d16black
Destructive
#78120dmaroon
#d92017crimson
Destructive foreground
#f8c1belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f3e7linen
#f0f3e7linen

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button12.72:1AAA
Secondary button13.05:1AAA
Muted text8.72:1AAA
Accent12.89:1AAA
Destructive7.06:1AAA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button12.72:1AAA
Secondary button13.05:1AAA
Muted text10.69:1AAA
Accent12.89:1AAA
Destructive5.03:1AA

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 117.166);
  --foreground: oklch(0.103 0.015 117.405);
  --muted: oklch(0.957 0.004 90.151);
  --muted-foreground: oklch(0.382 0.016 90.375);
  --popover: oklch(0.989 0.005 117.166);
  --popover-foreground: oklch(0.103 0.015 117.405);
  --card: oklch(0.989 0.005 117.166);
  --card-foreground: oklch(0.103 0.015 117.405);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.96 0.017 117.393);
  --primary-foreground: oklch(0.284 0.04 119.742);
  --secondary: oklch(0.955 0.013 90.218);
  --secondary-foreground: oklch(0.273 0.03 90.254);
  --accent: oklch(0.955 0.019 137.237);
  --accent-foreground: oklch(0.274 0.047 137.757);
  --destructive: oklch(0.371 0.137 28.911);
  --destructive-foreground: oklch(0.86 0.063 21.951);
  --ring: oklch(0.96 0.017 117.393);
  --chart-1: oklch(0.96 0.017 117.393);
  --chart-2: oklch(0.955 0.013 90.218);
  --chart-3: oklch(0.955 0.019 137.237);
  --chart-4: oklch(0.975 0.007 90.177);
  --chart-5: oklch(0.961 0.018 117.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.001 117.105);
  --muted: oklch(0.174 0.006 90.333);
  --muted-foreground: oklch(0.815 0.013 90.24);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.001 117.105);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.001 117.105);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.96 0.017 117.393);
  --primary-foreground: oklch(0.284 0.04 119.742);
  --secondary: oklch(0.955 0.013 90.218);
  --secondary-foreground: oklch(0.273 0.03 90.254);
  --accent: oklch(0.955 0.019 137.237);
  --accent-foreground: oklch(0.274 0.047 137.757);
  --destructive: oklch(0.567 0.217 29.242);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.96 0.017 117.393);
  --chart-1: oklch(0.96 0.017 117.393);
  --chart-2: oklch(0.955 0.013 90.218);
  --chart-3: oklch(0.955 0.019 137.237);
  --chart-4: oklch(0.975 0.007 90.177);
  --chart-5: oklch(0.961 0.018 117.42);
}