Worldly for shadcn/ui

Worldly is a shadcn/ui theme built around a green primary color (#4faa41) with green accents (#41aa67). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the green primary (#4faa41) on a green-tinted background (#050c04).

Color palette

TokenLightDark
Background
#f7fdf6mintcream
#050c04black
Foreground
#030802black
#f9fcf8mintcream
Card
#f7fdf6mintcream
#050c04black
Card foreground
#030802black
#f9fcf8mintcream
Popover
#f7fdf6mintcream
#050c04black
Popover foreground
#030802black
#f9fcf8mintcream
Primary
#4faa41limegreen
#4faa41limegreen
Primary foreground
#0a1608black
#0a1608black
Secondary
#83aa41yellowgreen
#83aa41yellowgreen
Secondary foreground
#111608black
#111608black
Muted
#daddd5gainsboro
#272a22darkslategray
Muted foreground
#5d664ddimgray
#a9b299darkgray
Accent
#41aa67mediumseagreen
#41aa67mediumseagreen
Accent foreground
#08160dblack
#08160dblack
Destructive
#ce4409chocolate
#f5510aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4faa41limegreen
#4faa41limegreen

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button6.33:1AA
Secondary button6.83:1AA
Muted text4.38:1AA Large
Accent6.34:1AA
Destructive4.73:1AA
Dark mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button6.33:1AA
Secondary button6.83:1AA
Muted text6.59:1AA
Accent6.34:1AA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 141.561);
  --foreground: oklch(0.123 0.023 139.799);
  --muted: oklch(0.892 0.011 123.113);
  --muted-foreground: oklch(0.494 0.04 124.204);
  --popover: oklch(0.989 0.011 141.561);
  --popover-foreground: oklch(0.123 0.023 139.799);
  --card: oklch(0.989 0.011 141.561);
  --card-foreground: oklch(0.123 0.023 139.799);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.659 0.168 141.097);
  --primary-foreground: oklch(0.185 0.032 141.022);
  --secondary: oklch(0.688 0.141 126.851);
  --secondary-foreground: oklch(0.191 0.027 125.235);
  --accent: oklch(0.66 0.139 152.549);
  --accent-foreground: oklch(0.185 0.027 155.173);
  --destructive: oklch(0.576 0.183 38.318);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.659 0.168 141.097);
  --chart-1: oklch(0.659 0.168 141.097);
  --chart-2: oklch(0.688 0.141 126.851);
  --chart-3: oklch(0.66 0.139 152.549);
  --chart-4: oklch(0.721 0.148 126.875);
  --chart-5: oklch(0.667 0.176 141.114);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.025 139.988);
  --foreground: oklch(0.987 0.005 141.577);
  --muted: oklch(0.28 0.014 123.717);
  --muted-foreground: oklch(0.75 0.036 123.679);
  --popover: oklch(0.141 0.025 139.988);
  --popover-foreground: oklch(0.987 0.005 141.577);
  --card: oklch(0.141 0.025 139.988);
  --card-foreground: oklch(0.987 0.005 141.577);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.659 0.168 141.097);
  --primary-foreground: oklch(0.185 0.032 141.022);
  --secondary: oklch(0.688 0.141 126.851);
  --secondary-foreground: oklch(0.191 0.027 125.235);
  --accent: oklch(0.66 0.139 152.549);
  --accent-foreground: oklch(0.185 0.027 155.173);
  --destructive: oklch(0.655 0.211 38.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.659 0.168 141.097);
  --chart-1: oklch(0.659 0.168 141.097);
  --chart-2: oklch(0.688 0.141 126.851);
  --chart-3: oklch(0.66 0.139 152.549);
  --chart-4: oklch(0.721 0.148 126.875);
  --chart-5: oklch(0.667 0.176 141.114);
}