Worthwhile is a shadcn/ui theme built around a muted light teal primary color (#c3dad9) with neutral gray accents (#dfe2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#c3dad9) on a neutral background (#020404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020404black |
| Foreground | #020d0dblack | #f9fbfbghostwhite |
| Card | #ffffffwhite | #020404black |
| Card foreground | #020d0dblack | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #020404black |
| Popover foreground | #020d0dblack | #f9fbfbghostwhite |
| Primary | #c3dad9lightgrey | #c3dad9lightgrey |
| Primary foreground | #294242darkslategray | #294242darkslategray |
| Secondary | #dfe2e2gainsboro | #2e3838darkslategray |
| Secondary foreground | #434c4bdarkslategray | #c7d1d1lightgrey |
| Muted | #e8f3f2whitesmoke | #0c1717black |
| Muted foreground | #585a5adimgray | #a5a7a7darkgray |
| Accent | #dfe2e2gainsboro | #2e3838darkslategray |
| Accent foreground | #434c4bdarkslategray | #c7d1d1lightgrey |
| Destructive | #a20601darkred | #fe362forangered |
| Destructive foreground | #ffd8d6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3dad9lightgrey | #c3dad9lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.11:1 | AA |
| Accent | 6.79:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Worthwhile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.02 192.906);
--muted: oklch(0.955 0.012 194.561);
--muted-foreground: oklch(0.466 0.002 194.699);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.02 192.906);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.02 192.906);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.871 0.025 194.263);
--primary-foreground: oklch(0.36 0.032 193.169);
--secondary: oklch(0.911 0.004 194.709);
--secondary-foreground: oklch(0.408 0.011 194.287);
--accent: oklch(0.911 0.004 194.709);
--accent-foreground: oklch(0.408 0.011 194.287);
--destructive: oklch(0.45 0.182 29.63);
--destructive-foreground: oklch(0.914 0.044 20.322);
--ring: oklch(0.871 0.025 194.263);
--chart-1: oklch(0.871 0.025 194.263);
--chart-2: oklch(0.911 0.004 194.709);
--chart-3: oklch(0.911 0.004 194.709);
--chart-4: oklch(0.933 0.003 194.731);
--chart-5: oklch(0.874 0.028 194.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 193.789);
--foreground: oklch(0.986 0.002 194.749);
--muted: oklch(0.196 0.016 193.283);
--muted-foreground: oklch(0.726 0.002 194.737);
--popover: oklch(0.097 0.008 193.789);
--popover-foreground: oklch(0.986 0.002 194.749);
--card: oklch(0.097 0.008 193.789);
--card-foreground: oklch(0.986 0.002 194.749);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.871 0.025 194.263);
--primary-foreground: oklch(0.36 0.032 193.169);
--secondary: oklch(0.332 0.014 194.029);
--secondary-foreground: oklch(0.853 0.011 194.547);
--accent: oklch(0.332 0.014 194.029);
--accent-foreground: oklch(0.853 0.011 194.547);
--destructive: oklch(0.649 0.235 28.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.025 194.263);
--chart-1: oklch(0.871 0.025 194.263);
--chart-2: oklch(0.332 0.014 194.029);
--chart-3: oklch(0.332 0.014 194.029);
--chart-4: oklch(0.363 0.015 194.009);
--chart-5: oklch(0.874 0.028 194.201);
}