Worldly for shadcn/ui

Worldly is a shadcn/ui theme built around a light purple primary color (#edabec) with light green accents (#abedac). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#edabec) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#fefbfewhite
#070307black
Foreground
#000000black
#fcf8fcsnow
Card
#fefbfewhite
#070307black
Card foreground
#000000black
#fcf8fcsnow
Popover
#fefbfewhite
#070307black
Popover foreground
#000000black
#fcf8fcsnow
Primary
#edabecplum
#edabecplum
Primary foreground
#541253indigo
#541253indigo
Secondary
#abedacpalegreen
#abedacpalegreen
Secondary foreground
#125413darkgreen
#125413darkgreen
Muted
#eef1efwhitesmoke
#0e110eblack
Muted foreground
#39463adarkslategray
#b9c6b9silver
Accent
#abedacpalegreen
#abedacpalegreen
Accent foreground
#125413darkgreen
#125413darkgreen
Destructive
#970702darkred
#fc332ccrimson
Destructive foreground
#fececdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#edabecplum
#edabecplum

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button7.32:1AAA
Secondary button6.70:1AA
Muted text8.74:1AAA
Accent6.70:1AA
Destructive6.37:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button7.32:1AAA
Secondary button6.70:1AA
Muted text10.74:1AAA
Accent6.70:1AA
Destructive3.72: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.991 0.006 326.102);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.004 146.019);
  --muted-foreground: oklch(0.379 0.027 145.459);
  --popover: oklch(0.991 0.006 326.102);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.006 326.102);
  --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.824 0.115 327.105);
  --primary-foreground: oklch(0.325 0.126 328.721);
  --secondary: oklch(0.886 0.111 144.966);
  --secondary-foreground: oklch(0.392 0.116 143.14);
  --accent: oklch(0.886 0.111 144.966);
  --accent-foreground: oklch(0.392 0.116 143.14);
  --destructive: oklch(0.427 0.171 29.541);
  --destructive-foreground: oklch(0.894 0.054 20.532);
  --ring: oklch(0.824 0.115 327.105);
  --chart-1: oklch(0.824 0.115 327.105);
  --chart-2: oklch(0.886 0.111 144.966);
  --chart-3: oklch(0.886 0.111 144.966);
  --chart-4: oklch(0.902 0.094 145.154);
  --chart-5: oklch(0.823 0.12 327.15);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.018 327.165);
  --foreground: oklch(0.983 0.007 326.11);
  --muted: oklch(0.172 0.006 145.751);
  --muted-foreground: oklch(0.812 0.022 145.828);
  --popover: oklch(0.111 0.018 327.165);
  --popover-foreground: oklch(0.983 0.007 326.11);
  --card: oklch(0.111 0.018 327.165);
  --card-foreground: oklch(0.983 0.007 326.11);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.824 0.115 327.105);
  --primary-foreground: oklch(0.325 0.126 328.721);
  --secondary: oklch(0.886 0.111 144.966);
  --secondary-foreground: oklch(0.392 0.116 143.14);
  --accent: oklch(0.886 0.111 144.966);
  --accent-foreground: oklch(0.392 0.116 143.14);
  --destructive: oklch(0.643 0.235 28.231);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.824 0.115 327.105);
  --chart-1: oklch(0.824 0.115 327.105);
  --chart-2: oklch(0.886 0.111 144.966);
  --chart-3: oklch(0.886 0.111 144.966);
  --chart-4: oklch(0.902 0.094 145.154);
  --chart-5: oklch(0.823 0.12 327.15);
}