Worn is a shadcn/ui theme built around a pink primary color (#862841) with red accents (#863e28). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#862841) on a pink-tinted background (#100508).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #100508black |
| Foreground | #050102black | #ffffffwhite |
| Card | #fefbfcsnow | #100508black |
| Card foreground | #050102black | #ffffffwhite |
| Popover | #fefbfcsnow | #100508black |
| Popover foreground | #050102black | #ffffffwhite |
| Primary | #862841brown | #862841brown |
| Primary foreground | #f8e7eclinen | #f8e7eclinen |
| Secondary | #862870purple | #862870purple |
| Secondary foreground | #f8e7f4lavenderblush | #f8e7f4lavenderblush |
| Muted | #f2e8f0whitesmoke | #170d15black |
| Muted foreground | #514d50darkslategray | #b2aeb1darkgray |
| Accent | #863e28saddlebrown | #863e28saddlebrown |
| Accent foreground | #f8ebe7linen | #f8ebe7linen |
| Destructive | #c0210cfirebrick | #f03219orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #862841brown | #862841brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 6.06:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 8.68:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Worn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 358.882);
--foreground: oklch(0.08 0.022 358.534);
--muted: oklch(0.941 0.015 333.502);
--muted-foreground: oklch(0.425 0.009 333.563);
--popover: oklch(0.99 0.003 358.882);
--popover-foreground: oklch(0.08 0.022 358.534);
--card: oklch(0.99 0.003 358.882);
--card-foreground: oklch(0.08 0.022 358.534);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.128 8.394);
--primary-foreground: oklch(0.944 0.019 359.347);
--secondary: oklch(0.445 0.151 338.53);
--secondary-foreground: oklch(0.946 0.024 333.652);
--accent: oklch(0.452 0.105 37.601);
--accent-foreground: oklch(0.95 0.015 37.673);
--destructive: oklch(0.52 0.195 30.932);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.128 8.394);
--chart-1: oklch(0.427 0.128 8.394);
--chart-2: oklch(0.445 0.151 338.53);
--chart-3: oklch(0.452 0.105 37.601);
--chart-4: oklch(0.473 0.162 338.583);
--chart-5: oklch(0.428 0.134 9.053);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.024 0.157);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.023 335.244);
--muted-foreground: oklch(0.754 0.007 333.399);
--popover: oklch(0.134 0.024 0.157);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.024 0.157);
--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.427 0.128 8.394);
--primary-foreground: oklch(0.944 0.019 359.347);
--secondary: oklch(0.445 0.151 338.53);
--secondary-foreground: oklch(0.946 0.024 333.652);
--accent: oklch(0.452 0.105 37.601);
--accent-foreground: oklch(0.95 0.015 37.673);
--destructive: oklch(0.62 0.227 31.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.128 8.394);
--chart-1: oklch(0.427 0.128 8.394);
--chart-2: oklch(0.445 0.151 338.53);
--chart-3: oklch(0.452 0.105 37.601);
--chart-4: oklch(0.473 0.162 338.583);
--chart-5: oklch(0.428 0.134 9.053);
}