Worn is a shadcn/ui theme built around a muted light green primary color (#e9ede8) with muted light red accents (#ede8e9). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted light green primary (#e9ede8) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020402black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f8fdf7mintcream | #020402black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #020402black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #e9ede8linen | #e9ede8linen |
| Primary foreground | #4a5d46darkolivegreen | #4a5d46darkolivegreen |
| Secondary | #e8e9edlavender | #e8e9edlavender |
| Secondary foreground | #464a5ddarkslategray | #464a5ddarkslategray |
| Muted | #d2d5eagainsboro | #15192dblack |
| Muted foreground | #5a5c68dimgray | #9799a5darkgray |
| Accent | #ede8e9linen | #ede8e9linen |
| Accent foreground | #5d464adarkolivegreen | #5d464adarkolivegreen |
| Destructive | #d60505red | #f91010red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9ede8linen | #e9ede8linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 5.41:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.03:1 | AA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Worn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 141.046);
--foreground: oklch(0 0 0);
--muted: oklch(0.878 0.028 277.835);
--muted-foreground: oklch(0.478 0.019 277.723);
--popover: oklch(0.988 0.009 141.046);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.009 141.046);
--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.942 0.009 141.044);
--primary-foreground: oklch(0.455 0.044 140.863);
--secondary: oklch(0.934 0.007 278.216);
--secondary-foreground: oklch(0.412 0.033 277.035);
--accent: oklch(0.935 0.006 6.764);
--accent-foreground: oklch(0.42 0.032 8.477);
--destructive: oklch(0.551 0.224 29.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.009 141.044);
--chart-1: oklch(0.942 0.009 141.044);
--chart-2: oklch(0.934 0.007 278.216);
--chart-3: oklch(0.935 0.006 6.764);
--chart-4: oklch(0.959 0.004 278.256);
--chart-5: oklch(0.943 0.011 141.039);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.012 139.856);
--foreground: oklch(0.993 0.002 141.061);
--muted: oklch(0.22 0.04 275.024);
--muted-foreground: oklch(0.686 0.017 277.949);
--popover: oklch(0.096 0.012 139.856);
--popover-foreground: oklch(0.993 0.002 141.061);
--card: oklch(0.096 0.012 139.856);
--card-foreground: oklch(0.993 0.002 141.061);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.942 0.009 141.044);
--primary-foreground: oklch(0.455 0.044 140.863);
--secondary: oklch(0.934 0.007 278.216);
--secondary-foreground: oklch(0.412 0.033 277.035);
--accent: oklch(0.935 0.006 6.764);
--accent-foreground: oklch(0.42 0.032 8.477);
--destructive: oklch(0.62 0.249 28.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.009 141.044);
--chart-1: oklch(0.942 0.009 141.044);
--chart-2: oklch(0.934 0.007 278.216);
--chart-3: oklch(0.935 0.006 6.764);
--chart-4: oklch(0.959 0.004 278.256);
--chart-5: oklch(0.943 0.011 141.039);
}