Wordy is a shadcn/ui theme built around a muted indigo primary color (#44425c) with muted yellow accents (#5a5c42). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#44425c) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #010104black | #f9f9fbghostwhite |
| Card | #ffffffwhite | #040307black |
| Card foreground | #010104black | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #010104black | #f9f9fbghostwhite |
| Primary | #44425cdarkslategray | #44425cdarkslategray |
| Primary foreground | #e5e4eclavender | #e5e4eclavender |
| Secondary | #5a5c42darkolivegreen | #5a5c42darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0f0ealinen | #15150fblack |
| Muted foreground | #6d6e5edimgray | #a0a191darkgray |
| Accent | #5a5c42darkolivegreen | #5a5c42darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #882f02saddlebrown | #ec5104orangered |
| Destructive foreground | #fed3bepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #44425cdarkslategray | #44425cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 4.55:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Wordy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.074 0.019 284.412);
--muted: oklch(0.954 0.009 108.874);
--muted-foreground: oklch(0.533 0.025 109.551);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.074 0.019 284.412);
--card: oklch(1 0 180);
--card-foreground: oklch(0.074 0.019 284.412);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.392 0.043 286.553);
--primary-foreground: oklch(0.922 0.01 288.509);
--secondary: oklch(0.465 0.039 110.202);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.465 0.039 110.202);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.43 0.131 40.956);
--destructive-foreground: oklch(0.898 0.056 48.071);
--ring: oklch(0.392 0.043 286.553);
--chart-1: oklch(0.392 0.043 286.553);
--chart-2: oklch(0.465 0.039 110.202);
--chart-3: oklch(0.465 0.039 110.202);
--chart-4: oklch(0.496 0.042 110.218);
--chart-5: oklch(0.386 0.051 286.056);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.012 286.888);
--foreground: oklch(0.982 0.004 288.64);
--muted: oklch(0.193 0.012 109.868);
--muted-foreground: oklch(0.704 0.023 109.311);
--popover: oklch(0.104 0.012 286.888);
--popover-foreground: oklch(0.982 0.004 288.64);
--card: oklch(0.104 0.012 286.888);
--card-foreground: oklch(0.982 0.004 288.64);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.392 0.043 286.553);
--primary-foreground: oklch(0.922 0.01 288.509);
--secondary: oklch(0.465 0.039 110.202);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.465 0.039 110.202);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.202 39.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.392 0.043 286.553);
--chart-1: oklch(0.392 0.043 286.553);
--chart-2: oklch(0.465 0.039 110.202);
--chart-3: oklch(0.465 0.039 110.202);
--chart-4: oklch(0.496 0.042 110.218);
--chart-5: oklch(0.386 0.051 286.056);
}