Well-worn is a shadcn/ui theme built around an orange primary color (#987952) with blue accents (#527298). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#987952) on a neutral background (#080502).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080502black |
| Foreground | #0d0802black | #faf8f5whitesmoke |
| Card | #ffffffwhite | #080502black |
| Card foreground | #0d0802black | #faf8f5whitesmoke |
| Popover | #ffffffwhite | #080502black |
| Popover foreground | #0d0802black | #faf8f5whitesmoke |
| Primary | #987952gray | #987952gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #527298slategray | #527298slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebeff4whitesmoke | #0b0f14black |
| Muted foreground | #515458darkslategray | #a7abaedarkgray |
| Accent | #527298slategray | #527298slategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8a1b05darkred | #f74522orangered |
| Destructive foreground | #fdcdc4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #987952gray | #987952gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 4.04:1 | AA Large |
| Secondary button | 4.98:1 | AA |
| Muted text | 6.60:1 | AA |
| Accent | 4.98:1 | AA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 4.04:1 | AA Large |
| Secondary button | 4.98:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 4.98:1 | AA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Well-worn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.019 81.284);
--muted: oklch(0.951 0.008 253.277);
--muted-foreground: oklch(0.444 0.007 253.325);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.019 81.284);
--card: oklch(1 0 180);
--card-foreground: oklch(0.139 0.019 81.284);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.597 0.067 71.573);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.071 253.918);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.071 253.918);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.413 0.149 32.644);
--destructive-foreground: oklch(0.888 0.056 31.298);
--ring: oklch(0.597 0.067 71.573);
--chart-1: oklch(0.597 0.067 71.573);
--chart-2: oklch(0.543 0.071 253.918);
--chart-3: oklch(0.543 0.071 253.918);
--chart-4: oklch(0.568 0.075 253.924);
--chart-5: oklch(0.601 0.073 71.294);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 81.069);
--foreground: oklch(0.979 0.004 73.19);
--muted: oklch(0.166 0.013 253.633);
--muted-foreground: oklch(0.738 0.006 253.277);
--popover: oklch(0.121 0.014 81.069);
--popover-foreground: oklch(0.979 0.004 73.19);
--card: oklch(0.121 0.014 81.069);
--card-foreground: oklch(0.979 0.004 73.19);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.597 0.067 71.573);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.071 253.918);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.543 0.071 253.918);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.219 32.974);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.067 71.573);
--chart-1: oklch(0.597 0.067 71.573);
--chart-2: oklch(0.543 0.071 253.918);
--chart-3: oklch(0.543 0.071 253.918);
--chart-4: oklch(0.568 0.075 253.924);
--chart-5: oklch(0.601 0.073 71.294);
}