Worthy is a shadcn/ui theme built around a muted light indigo primary color (#bebecb) with muted light green accents (#becbbe). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted light indigo primary (#bebecb) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #010104black |
| Foreground | #010109black | #f6f6f9whitesmoke |
| Card | #f4f4fbwhitesmoke | #030308black |
| Card foreground | #010105black | #f9f9fbghostwhite |
| Popover | #f8f8fcghostwhite | #010104black |
| Popover foreground | #010109black | #f6f6f9whitesmoke |
| Primary | #bebecbsilver | #bebecbsilver |
| Primary foreground | #272730darkslategray | #272730darkslategray |
| Secondary | #cbbebesilver | #cbbebesilver |
| Secondary foreground | #302727darkslategray | #302727darkslategray |
| Muted | #e5e1e1gainsboro | #1e1a1ablack |
| Muted foreground | #675b5bdimgray | #a49899darkgray |
| Accent | #becbbesilver | #becbbesilver |
| Accent foreground | #273027darkslategray | #273027darkslategray |
| Destructive | #7e0501maroon | #fc0b03red |
| Destructive foreground | #feb6b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bebecbsilver | #bebecbsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Worthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 284.702);
--foreground: oklch(0.086 0.029 275.262);
--muted: oklch(0.913 0.004 14.878);
--muted-foreground: oklch(0.483 0.015 15.386);
--popover: oklch(0.98 0.006 284.702);
--popover-foreground: oklch(0.086 0.029 275.262);
--card: oklch(0.969 0.009 284.646);
--card-foreground: oklch(0.068 0.023 275.262);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.806 0.017 284.421);
--primary-foreground: oklch(0.276 0.017 283.669);
--secondary: oklch(0.812 0.015 15.129);
--secondary-foreground: oklch(0.282 0.014 15.771);
--accent: oklch(0.828 0.022 144.443);
--accent-foreground: oklch(0.298 0.021 144.147);
--destructive: oklch(0.376 0.15 29.692);
--destructive-foreground: oklch(0.843 0.085 21.236);
--ring: oklch(0.806 0.017 284.421);
--chart-1: oklch(0.806 0.017 284.421);
--chart-2: oklch(0.812 0.015 15.129);
--chart-3: oklch(0.828 0.022 144.443);
--chart-4: oklch(0.837 0.013 15.073);
--chart-5: oklch(0.802 0.022 284.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.078 0.014 280.551);
--foreground: oklch(0.973 0.005 284.726);
--muted: oklch(0.223 0.006 15.317);
--muted-foreground: oklch(0.691 0.014 15.165);
--popover: oklch(0.078 0.014 280.551);
--popover-foreground: oklch(0.973 0.005 284.726);
--card: oklch(0.099 0.017 280.551);
--card-foreground: oklch(0.982 0.003 284.754);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.806 0.017 284.421);
--primary-foreground: oklch(0.276 0.017 283.669);
--secondary: oklch(0.812 0.015 15.129);
--secondary-foreground: oklch(0.282 0.014 15.771);
--accent: oklch(0.828 0.022 144.443);
--accent-foreground: oklch(0.298 0.021 144.147);
--destructive: oklch(0.625 0.254 29.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.806 0.017 284.421);
--chart-1: oklch(0.806 0.017 284.421);
--chart-2: oklch(0.812 0.015 15.129);
--chart-3: oklch(0.828 0.022 144.443);
--chart-4: oklch(0.837 0.013 15.073);
--chart-5: oklch(0.802 0.022 284.309);
}