Worn is a shadcn/ui theme built around a blue primary color (#627cb2) with indigo accents (#6f62b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#627cb2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #f5f7fawhitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #000000black | #f5f7fawhitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #f5f7fawhitesmoke |
| Primary | #627cb2steelblue | #627cb2steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #62a4b2cadetblue | #62a4b2cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #edf2f2whitesmoke | #0d1112black |
| Muted foreground | #394446darkslategray | #b9c4c6silver |
| Accent | #6f62b2slateblue | #6f62b2slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b34205saddlebrown | #f95b06orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #627cb2steelblue | #627cb2steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 4.14:1 | AA Large |
| Secondary button | 7.48:1 | AAA |
| Muted text | 8.87:1 | AAA |
| Accent | 5.17:1 | AA |
| Destructive | 5.69:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 4.14:1 | AA Large |
| Secondary button | 7.48:1 | AAA |
| Muted text | 10.64:1 | AAA |
| Accent | 5.17:1 | AA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Worn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.005 211.04);
--muted-foreground: oklch(0.378 0.014 211.086);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.589 0.088 263.555);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.07 211.826);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.544 0.122 289.37);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.529 0.159 41.457);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.589 0.088 263.555);
--chart-1: oklch(0.589 0.088 263.555);
--chart-2: oklch(0.68 0.07 211.826);
--chart-3: oklch(0.544 0.122 289.37);
--chart-4: oklch(0.701 0.066 211.65);
--chart-5: oklch(0.586 0.096 263.433);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 264.537);
--muted: oklch(0.174 0.007 211.107);
--muted-foreground: oklch(0.811 0.012 211.039);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.005 264.537);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.005 264.537);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.589 0.088 263.555);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.68 0.07 211.826);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.544 0.122 289.37);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.673 0.206 40.705);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.589 0.088 263.555);
--chart-1: oklch(0.589 0.088 263.555);
--chart-2: oklch(0.68 0.07 211.826);
--chart-3: oklch(0.544 0.122 289.37);
--chart-4: oklch(0.701 0.066 211.65);
--chart-5: oklch(0.586 0.096 263.433);
}