Worth is a shadcn/ui theme built around a vivid green primary color (#18dc1f) with muted green accents (#b3c2b3). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid green primary (#18dc1f) on a green-tinted background (#050f06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #050f06black |
| Foreground | #061307black | #ffffffwhite |
| Card | #f5faf5whitesmoke | #071307black |
| Card foreground | #050f05black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #050f06black |
| Popover foreground | #061307black | #ffffffwhite |
| Primary | #18dc1flimegreen | #18dc1flimegreen |
| Primary foreground | #042505black | #042505black |
| Secondary | #ccd1cclightgrey | #272b27darkslategray |
| Secondary foreground | #333833darkslategray | #bfc5bfsilver |
| Muted | #ebf4echoneydew | #0b140bblack |
| Muted foreground | #384739darkslategray | #b8c7b8silver |
| Accent | #b3c2b3silver | #364437darkslategray |
| Accent foreground | #1e251eblack | #d2dbd2lightgrey |
| Destructive | #a71311firebrick | #e31a16crimson |
| Destructive foreground | #fdedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #18dc1flimegreen | #18dc1flimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.33:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 6.73:1 | AA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 10.65:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Worth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.006 146.489);
--foreground: oklch(0.171 0.032 144.88);
--muted: oklch(0.959 0.015 146.406);
--muted-foreground: oklch(0.381 0.032 145.785);
--popover: oklch(0.986 0.006 146.489);
--popover-foreground: oklch(0.171 0.032 144.88);
--card: oklch(0.98 0.009 146.462);
--card-foreground: oklch(0.155 0.028 145.051);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.778 0.256 142.804);
--primary-foreground: oklch(0.231 0.068 143.613);
--secondary: oklch(0.855 0.008 146.457);
--secondary-foreground: oklch(0.335 0.012 146.236);
--accent: oklch(0.797 0.026 146.25);
--accent-foreground: oklch(0.254 0.017 145.946);
--destructive: oklch(0.465 0.18 28.473);
--destructive-foreground: oklch(0.958 0.018 18.651);
--ring: oklch(0.778 0.256 142.804);
--chart-1: oklch(0.778 0.256 142.804);
--chart-2: oklch(0.855 0.008 146.457);
--chart-3: oklch(0.797 0.026 146.25);
--chart-4: oklch(0.879 0.007 146.472);
--chart-5: oklch(0.787 0.261 142.757);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.027 145.081);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.022 145.389);
--muted-foreground: oklch(0.813 0.026 146.254);
--popover: oklch(0.155 0.027 145.081);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.031 144.91);
--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.778 0.256 142.804);
--primary-foreground: oklch(0.231 0.068 143.613);
--secondary: oklch(0.283 0.009 146.254);
--secondary-foreground: oklch(0.816 0.011 146.428);
--accent: oklch(0.37 0.028 145.853);
--accent-foreground: oklch(0.881 0.015 146.39);
--destructive: oklch(0.584 0.229 28.666);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.778 0.256 142.804);
--chart-1: oklch(0.778 0.256 142.804);
--chart-2: oklch(0.283 0.009 146.254);
--chart-3: oklch(0.37 0.028 145.853);
--chart-4: oklch(0.314 0.011 146.242);
--chart-5: oklch(0.787 0.261 142.757);
}