Worthy is a shadcn/ui theme built around a deep yellow primary color (#443c22) with neutral gray accents (#e7e6e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#443c22) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0a03black |
| Foreground | #141105black | #f9f8f5whitesmoke |
| Card | #fcfcfcsnow | #100d04black |
| Card foreground | #100d04black | #fbfbf9snow |
| Popover | #ffffffwhite | #0c0a03black |
| Popover foreground | #141105black | #f9f8f5whitesmoke |
| Primary | #443c22darkolivegreen | #443c22darkolivegreen |
| Primary foreground | #ddd5bblightgrey | #ddd5bblightgrey |
| Secondary | #e7e6e4gainsboro | #262626darkslategray |
| Secondary foreground | #504f49darkslategray | #bfbfbfsilver |
| Muted | #f3f3f1whitesmoke | #0e0c0cblack |
| Muted foreground | #55534edarkslategray | #b1aaaadarkgray |
| Accent | #e7e6e4gainsboro | #262626darkslategray |
| Accent foreground | #504f49darkslategray | #bfbfbfsilver |
| Destructive | #770d04maroon | #f71c08red |
| Destructive foreground | #fdb6b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #443c22darkolivegreen | #443c22darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 6.90:1 | AA |
| Accent | 6.59:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 18.63:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Worthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.023 94.059);
--muted: oklch(0.963 0.002 92.676);
--muted-foreground: oklch(0.443 0.008 92.832);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.177 0.023 94.059);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.021 95.12);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.357 0.042 93.073);
--primary-foreground: oklch(0.872 0.036 93.001);
--secondary: oklch(0.925 0.003 92.686);
--secondary-foreground: oklch(0.426 0.01 92.868);
--accent: oklch(0.925 0.003 92.686);
--accent-foreground: oklch(0.426 0.01 92.868);
--destructive: oklch(0.364 0.139 30.422);
--destructive-foreground: oklch(0.841 0.083 24.816);
--ring: oklch(0.357 0.042 93.073);
--chart-1: oklch(0.357 0.042 93.073);
--chart-2: oklch(0.925 0.003 92.686);
--chart-3: oklch(0.925 0.003 92.686);
--chart-4: oklch(0.948 0.002 92.676);
--chart-5: oklch(0.361 0.045 93.006);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.018 96.903);
--foreground: oklch(0.98 0.004 92.7);
--muted: oklch(0.156 0.003 17.485);
--muted-foreground: oklch(0.744 0.008 17.325);
--popover: oklch(0.145 0.018 96.903);
--popover-foreground: oklch(0.98 0.004 92.7);
--card: oklch(0.161 0.021 95.12);
--card-foreground: oklch(0.987 0.003 92.686);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.357 0.042 93.073);
--primary-foreground: oklch(0.872 0.036 93.001);
--secondary: oklch(0.27 0 180);
--secondary-foreground: oklch(0.805 0 169.695);
--accent: oklch(0.27 0 180);
--accent-foreground: oklch(0.805 0 169.695);
--destructive: oklch(0.621 0.245 30.012);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.357 0.042 93.073);
--chart-1: oklch(0.357 0.042 93.073);
--chart-2: oklch(0.27 0 180);
--chart-3: oklch(0.27 0 180);
--chart-4: oklch(0.301 0 189.462);
--chart-5: oklch(0.361 0.045 93.006);
}