Well-worn is a shadcn/ui theme built around a violet primary color (#5a39a7) with purple accents (#9139a7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the violet primary (#5a39a7) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040307black |
| Foreground | #05020dblack | #f9f9fbghostwhite |
| Card | #f9f8fcghostwhite | #040307black |
| Card foreground | #05020dblack | #f9f9fbghostwhite |
| Popover | #f9f8fcghostwhite | #040307black |
| Popover foreground | #05020dblack | #f9f9fbghostwhite |
| Primary | #5a39a7rebeccapurple | #5a39a7rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #394fa7darkslateblue | #394fa7darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d0d4e7gainsboro | #181d2fblack |
| Muted foreground | #464953darkslategray | #acafb9darkgray |
| Accent | #9139a7darkorchid | #9139a7darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #952109darkred | #f0350forangered |
| Destructive foreground | #fcdbd4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a39a7rebeccapurple | #5a39a7rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Well-worn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 299.948);
--foreground: oklch(0.106 0.035 299.874);
--muted: oklch(0.873 0.026 274.657);
--muted-foreground: oklch(0.406 0.017 274.494);
--popover: oklch(0.981 0.005 299.948);
--popover-foreground: oklch(0.106 0.035 299.874);
--card: oklch(0.981 0.005 299.948);
--card-foreground: oklch(0.106 0.035 299.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.447 0.167 292.034);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.461 0.143 269.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.513 0.182 319.014);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.439 0.155 32.689);
--destructive-foreground: oklch(0.916 0.039 31.182);
--ring: oklch(0.447 0.167 292.034);
--chart-1: oklch(0.447 0.167 292.034);
--chart-2: oklch(0.461 0.143 269.465);
--chart-3: oklch(0.513 0.182 319.014);
--chart-4: oklch(0.483 0.151 269.413);
--chart-5: oklch(0.444 0.176 291.312);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.013 300.163);
--foreground: oklch(0.982 0.003 299.981);
--muted: oklch(0.235 0.036 272.645);
--muted-foreground: oklch(0.755 0.014 274.798);
--popover: oklch(0.106 0.013 300.163);
--popover-foreground: oklch(0.982 0.003 299.981);
--card: oklch(0.106 0.013 300.163);
--card-foreground: oklch(0.982 0.003 299.981);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.447 0.167 292.034);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.461 0.143 269.465);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.513 0.182 319.014);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.226 32.384);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.447 0.167 292.034);
--chart-1: oklch(0.447 0.167 292.034);
--chart-2: oklch(0.461 0.143 269.465);
--chart-3: oklch(0.513 0.182 319.014);
--chart-4: oklch(0.483 0.151 269.413);
--chart-5: oklch(0.444 0.176 291.312);
}