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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 8.74:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 10.74:1 | AAA |
| Accent | 6.70:1 | AA |
| Destructive | 3.72:1 | AA Large |
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);
}