Worldly for shadcn/ui

Worldly is a shadcn/ui theme built around a near-white primary color (#f7fdf9) with muted light green accents (#d3ded7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f7fdf9) on a green-tinted background (#030c06).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c06black
Foreground
#04160ablack
#ffffffwhite
Card
#ffffffwhite
#030c06black
Card foreground
#04160ablack
#ffffffwhite
Popover
#ffffffwhite
#030c06black
Popover foreground
#04160ablack
#ffffffwhite
Primary
#f7fdf9mintcream
#f7fdf9mintcream
Primary foreground
#134925darkgreen
#134925darkgreen
Secondary
#e9ecealavender
#2c3a31darkslategray
Secondary foreground
#4c5750darkslategray
#c5d3calightgrey
Muted
#f0f4f2whitesmoke
#0b0f0cblack
Muted foreground
#3a4b3fdarkslategray
#b4c5basilver
Accent
#d3ded7gainsboro
#3a5945darkslategray
Accent foreground
#37493ddarkslategray
#dde9e1gainsboro
Destructive
#740f0bmaroon
#e92720crimson
Destructive foreground
#f8bbb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7fdf9mintcream
#f7fdf9mintcream

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.67:1AAA
Primary button10.14:1AAA
Secondary button6.33:1AA
Muted text8.38:1AAA
Accent6.97:1AA
Destructive7.04:1AAA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button10.14:1AAA
Secondary button7.73:1AAA
Muted text10.72:1AAA
Accent6.19:1AA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.035 153.893);
  --muted: oklch(0.964 0.005 157.161);
  --muted-foreground: oklch(0.394 0.029 155.657);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.178 0.035 153.893);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.178 0.035 153.893);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.008 157.095);
  --primary-foreground: oklch(0.36 0.083 150.699);
  --secondary: oklch(0.94 0.004 157.179);
  --secondary-foreground: oklch(0.445 0.019 156.372);
  --accent: oklch(0.891 0.015 156.919);
  --accent-foreground: oklch(0.385 0.03 155.544);
  --destructive: oklch(0.36 0.135 28.51);
  --destructive-foreground: oklch(0.848 0.07 20.915);
  --ring: oklch(0.988 0.008 157.095);
  --chart-1: oklch(0.988 0.008 157.095);
  --chart-2: oklch(0.94 0.004 157.179);
  --chart-3: oklch(0.891 0.015 156.919);
  --chart-4: oklch(0.963 0.002 157.213);
  --chart-5: oklch(0.988 0.009 157.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.022 156.675);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.008 156.267);
  --muted-foreground: oklch(0.808 0.025 156.63);
  --popover: oklch(0.142 0.022 156.675);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.022 156.675);
  --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.988 0.008 157.095);
  --primary-foreground: oklch(0.36 0.083 150.699);
  --secondary: oklch(0.332 0.023 155.737);
  --secondary-foreground: oklch(0.853 0.019 156.811);
  --accent: oklch(0.435 0.05 154.618);
  --accent-foreground: oklch(0.922 0.016 156.9);
  --destructive: oklch(0.601 0.227 28.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.988 0.008 157.095);
  --chart-1: oklch(0.988 0.008 157.095);
  --chart-2: oklch(0.332 0.023 155.737);
  --chart-3: oklch(0.435 0.05 154.618);
  --chart-4: oklch(0.363 0.026 155.692);
  --chart-5: oklch(0.988 0.009 157.086);
}