Wordy is a shadcn/ui theme built around a pink primary color (#7a385e) with red accents (#7a383d). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#7a385e) on a pink-tinted background (#0f050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0f050bblack |
| Foreground | #040103black | #ffffffwhite |
| Card | #fdf7fasnow | #13070eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7fasnow | #13070eblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7a385edimgray | #7a385edimgray |
| Primary foreground | #f7eef3whitesmoke | #f7eef3whitesmoke |
| Secondary | #76387arebeccapurple | #76387arebeccapurple |
| Secondary foreground | #f6eef7whitesmoke | #f6eef7whitesmoke |
| Muted | #e8d8e9gainsboro | #261627black |
| Muted foreground | #444044darkslategray | #bebbbfsilver |
| Accent | #7a383dsaddlebrown | #7a383dsaddlebrown |
| Accent foreground | #f7eeeelinen | #f7eeeelinen |
| Destructive | #792906saddlebrown | #f57138tomato |
| Destructive foreground | #fbcbb6peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a385edimgray | #7a385edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 7.27:1 | AAA |
Paste this into your globals.css to use Wordy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 341.908);
--foreground: oklch(0.084 0.017 341.832);
--muted: oklch(0.899 0.03 323.806);
--muted-foreground: oklch(0.378 0.008 323.749);
--popover: oklch(0.981 0.008 342.01);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.008 342.01);
--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.441 0.103 347.052);
--primary-foreground: oklch(0.957 0.012 342.114);
--secondary: oklch(0.448 0.124 324.842);
--secondary-foreground: oklch(0.957 0.016 323.72);
--accent: oklch(0.43 0.092 17.628);
--accent-foreground: oklch(0.955 0.01 12.65);
--destructive: oklch(0.397 0.12 39.714);
--destructive-foreground: oklch(0.879 0.062 44.406);
--ring: oklch(0.441 0.103 347.052);
--chart-1: oklch(0.441 0.103 347.052);
--chart-2: oklch(0.448 0.124 324.842);
--chart-3: oklch(0.43 0.092 17.628);
--chart-4: oklch(0.475 0.133 324.85);
--chart-5: oklch(0.441 0.111 347.478);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.023 343.627);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.041 324.481);
--muted-foreground: oklch(0.795 0.007 323.681);
--popover: oklch(0.15 0.026 344.942);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.026 344.942);
--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.441 0.103 347.052);
--primary-foreground: oklch(0.957 0.012 342.114);
--secondary: oklch(0.448 0.124 324.842);
--secondary-foreground: oklch(0.957 0.016 323.72);
--accent: oklch(0.43 0.092 17.628);
--accent-foreground: oklch(0.955 0.01 12.65);
--destructive: oklch(0.697 0.176 41.942);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.441 0.103 347.052);
--chart-1: oklch(0.441 0.103 347.052);
--chart-2: oklch(0.448 0.124 324.842);
--chart-3: oklch(0.43 0.092 17.628);
--chart-4: oklch(0.475 0.133 324.85);
--chart-5: oklch(0.441 0.111 347.478);
}