Wordy is a shadcn/ui theme built around a blue primary color (#225487) with green accents (#548722). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#225487) on a blue-tinted background (#070a0d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #070a0dblack |
| Foreground | #050a0fblack | #f9fafbghostwhite |
| Card | #fcfcfdwhite | #070a0dblack |
| Card foreground | #050a0fblack | #f9fafbghostwhite |
| Popover | #fcfcfdwhite | #070a0dblack |
| Popover foreground | #050a0fblack | #f9fafbghostwhite |
| Primary | #225487darkslateblue | #225487darkslateblue |
| Primary foreground | #e2edf8lavender | #e2edf8lavender |
| Secondary | #872254brown | #872254brown |
| Secondary foreground | #f8e2edmistyrose | #f8e2edmistyrose |
| Muted | #e8dee3gainsboro | #21171cblack |
| Muted foreground | #56434ddarkslategray | #bca9b3darkgray |
| Accent | #548722olivedrab | #548722olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ad210bfirebrick | #dd2a0eorangered |
| Destructive foreground | #feeeecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #225487darkslateblue | #225487darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 4.33:1 | AA Large |
| Destructive | 6.24:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 4.33:1 | AA Large |
| Destructive | 4.78:1 | AA |
Paste this into your globals.css to use Wordy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 247.838);
--foreground: oklch(0.142 0.015 244.338);
--muted: oklch(0.91 0.012 345.49);
--muted-foreground: oklch(0.407 0.029 346.913);
--popover: oklch(0.992 0.002 247.838);
--popover-foreground: oklch(0.142 0.015 244.338);
--card: oklch(0.992 0.002 247.838);
--card-foreground: oklch(0.142 0.015 244.338);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.438 0.099 251.161);
--primary-foreground: oklch(0.942 0.018 248.024);
--secondary: oklch(0.429 0.143 354.446);
--secondary-foreground: oklch(0.934 0.027 345.889);
--accent: oklch(0.566 0.141 132.688);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.484 0.178 31.456);
--destructive-foreground: oklch(0.961 0.017 28.031);
--ring: oklch(0.438 0.099 251.161);
--chart-1: oklch(0.438 0.099 251.161);
--chart-2: oklch(0.429 0.143 354.446);
--chart-3: oklch(0.566 0.141 132.688);
--chart-4: oklch(0.456 0.154 354.569);
--chart-5: oklch(0.439 0.104 251.437);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.009 245.888);
--foreground: oklch(0.984 0.002 247.839);
--muted: oklch(0.22 0.018 347.121);
--muted-foreground: oklch(0.754 0.025 345.977);
--popover: oklch(0.143 0.009 245.888);
--popover-foreground: oklch(0.984 0.002 247.839);
--card: oklch(0.143 0.009 245.888);
--card-foreground: oklch(0.984 0.002 247.839);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.438 0.099 251.161);
--primary-foreground: oklch(0.942 0.018 248.024);
--secondary: oklch(0.429 0.143 354.446);
--secondary-foreground: oklch(0.934 0.027 345.889);
--accent: oklch(0.566 0.141 132.688);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.579 0.216 31.362);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.438 0.099 251.161);
--chart-1: oklch(0.438 0.099 251.161);
--chart-2: oklch(0.429 0.143 354.446);
--chart-3: oklch(0.566 0.141 132.688);
--chart-4: oklch(0.456 0.154 354.569);
--chart-5: oklch(0.439 0.104 251.437);
}