Well-worn is a shadcn/ui theme built around a vivid yellow primary color (#f6bb09) with vivid purple accents (#bb09f6). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid yellow primary (#f6bb09) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070603black |
| Foreground | #040301black | #f9f8f6whitesmoke |
| Card | #fcfbf8snow | #0a0905black |
| Card foreground | #000000black | #fbfaf9snow |
| Popover | #fcfbf8snow | #0a0905black |
| Popover foreground | #000000black | #fbfaf9snow |
| Primary | #f6bb09orange | #f6bb09orange |
| Primary foreground | #312502black | #312502black |
| Secondary | #09f6bbmediumspringgreen | #09f6bbmediumspringgreen |
| Secondary foreground | #023125black | #023125black |
| Muted | #c9e8e0gainsboro | #17362edarkslategray |
| Muted foreground | #445a55darkslategray | #a5bbb5darkgray |
| Accent | #bb09f6darkviolet | #bb09f6darkviolet |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #771208maroon | #f03d2dcrimson |
| Destructive foreground | #fabdb7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6bb09orange | #f6bb09orange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 10.15:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 4.68:1 | AA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 10.15:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 4.68:1 | AA |
| Destructive | 3.86: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.994 0.002 91.43);
--foreground: oklch(0.099 0.011 96.007);
--muted: oklch(0.907 0.034 178.765);
--muted-foreground: oklch(0.448 0.028 177.913);
--popover: oklch(0.988 0.005 91.452);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.005 91.452);
--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.823 0.167 85.22);
--primary-foreground: oklch(0.272 0.054 89.772);
--secondary: oklch(0.864 0.176 167.393);
--secondary-foreground: oklch(0.28 0.053 171.068);
--accent: oklch(0.598 0.294 313.574);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.369 0.137 30.053);
--destructive-foreground: oklch(0.852 0.071 24.594);
--ring: oklch(0.823 0.167 85.22);
--chart-1: oklch(0.823 0.167 85.22);
--chart-2: oklch(0.864 0.176 167.393);
--chart-3: oklch(0.598 0.294 313.574);
--chart-4: oklch(0.867 0.172 168.576);
--chart-5: oklch(0.831 0.17 84.776);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 94.403);
--foreground: oklch(0.98 0.003 91.44);
--muted: oklch(0.305 0.039 175.19);
--muted-foreground: oklch(0.774 0.025 178.897);
--popover: oklch(0.139 0.01 94.403);
--popover-foreground: oklch(0.986 0.002 91.43);
--card: oklch(0.139 0.01 94.403);
--card-foreground: oklch(0.986 0.002 91.43);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.167 85.22);
--primary-foreground: oklch(0.272 0.054 89.772);
--secondary: oklch(0.864 0.176 167.393);
--secondary-foreground: oklch(0.28 0.053 171.068);
--accent: oklch(0.598 0.294 313.574);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.217 29.653);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.167 85.22);
--chart-1: oklch(0.823 0.167 85.22);
--chart-2: oklch(0.864 0.176 167.393);
--chart-3: oklch(0.598 0.294 313.574);
--chart-4: oklch(0.867 0.172 168.576);
--chart-5: oklch(0.831 0.17 84.776);
}