Worthy is a shadcn/ui theme built around a muted red primary color (#5a3f43) with muted blue accents (#3f435a). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the muted red primary (#5a3f43) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #070304black |
| Foreground | #120304black | #ffffffwhite |
| Card | #fdf7f8snow | #070304black |
| Card foreground | #120304black | #ffffffwhite |
| Popover | #fdf7f8snow | #070304black |
| Popover foreground | #120304black | #ffffffwhite |
| Primary | #5a3f43darkslategray | #5a3f43darkslategray |
| Primary foreground | #eae1e2gainsboro | #eae1e2gainsboro |
| Secondary | #435a3fdarkslategray | #435a3fdarkslategray |
| Secondary foreground | #e2eae1gainsboro | #e2eae1gainsboro |
| Muted | #cde8calightgrey | #1b3517darkgreen |
| Muted foreground | #454a45darkslategray | #b5bab5silver |
| Accent | #3f435adarkslategray | #3f435adarkslategray |
| Accent foreground | #e1e2eagainsboro | #e1e2eagainsboro |
| Destructive | #721a08maroon | #f15637tomato |
| Destructive foreground | #fabfb3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a3f43darkslategray | #5a3f43darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 6.20:1 | AA |
| Muted text | 6.78:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.12:1 | AA |
Paste this into your globals.css to use Worthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 9.045);
--foreground: oklch(0.129 0.033 11.995);
--muted: oklch(0.903 0.049 141.926);
--muted-foreground: oklch(0.403 0.011 142.015);
--popover: oklch(0.981 0.006 9.045);
--popover-foreground: oklch(0.129 0.033 11.995);
--card: oklch(0.981 0.006 9.045);
--card-foreground: oklch(0.129 0.033 11.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.399 0.037 11.093);
--primary-foreground: oklch(0.917 0.01 9.156);
--secondary: oklch(0.439 0.05 141.719);
--secondary-foreground: oklch(0.928 0.014 142.06);
--accent: oklch(0.388 0.039 278.553);
--accent-foreground: oklch(0.915 0.01 280.151);
--destructive: oklch(0.366 0.126 32.939);
--destructive-foreground: oklch(0.854 0.071 31.439);
--ring: oklch(0.399 0.037 11.093);
--chart-1: oklch(0.399 0.037 11.093);
--chart-2: oklch(0.439 0.05 141.719);
--chart-3: oklch(0.388 0.039 278.553);
--chart-4: oklch(0.469 0.054 141.714);
--chart-5: oklch(0.397 0.043 11.531);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 9.508);
--foreground: oklch(1 0 180);
--muted: oklch(0.3 0.061 141.464);
--muted-foreground: oklch(0.785 0.01 142.07);
--popover: oklch(0.109 0.01 9.508);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.01 9.508);
--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.399 0.037 11.093);
--primary-foreground: oklch(0.917 0.01 9.156);
--secondary: oklch(0.439 0.05 141.719);
--secondary-foreground: oklch(0.928 0.014 142.06);
--accent: oklch(0.388 0.039 278.553);
--accent-foreground: oklch(0.915 0.01 280.151);
--destructive: oklch(0.657 0.196 33.212);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.399 0.037 11.093);
--chart-1: oklch(0.399 0.037 11.093);
--chart-2: oklch(0.439 0.05 141.719);
--chart-3: oklch(0.388 0.039 278.553);
--chart-4: oklch(0.469 0.054 141.714);
--chart-5: oklch(0.397 0.043 11.531);
}