Helpful is a shadcn/ui theme built around a vivid green primary color (#bff882) with vivid violet accents (#bb82f8). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#bff882) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #000000black |
| Foreground | #0d1405black | #fafbf9snow |
| Card | #f7fcf3whitesmoke | #030303black |
| Card foreground | #0a1004black | #fcfdfcwhite |
| Popover | #f7fcf3whitesmoke | #030303black |
| Popover foreground | #0a1004black | #fcfdfcwhite |
| Primary | #bff882palegreen | #bff882palegreen |
| Primary foreground | #254304darkgreen | #254304darkgreen |
| Secondary | #bb82f8orchid | #bb82f8orchid |
| Secondary foreground | #230443midnightblue | #230443midnightblue |
| Muted | #e8e3eelavender | #17111cblack |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #bb82f8orchid | #bb82f8orchid |
| Accent foreground | #230443midnightblue | #230443midnightblue |
| Destructive | #810c03maroon | #ea1506red |
| Destructive foreground | #fdbeb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bff882palegreen | #bff882palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.25:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 7.00:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 8.98:1 | AAA |
| Secondary button | 6.52:1 | AA |
| Muted text | 9.01:1 | AAA |
| Accent | 6.52:1 | AA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Helpful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 127.888);
--foreground: oklch(0.18 0.032 129.338);
--muted: oklch(0.922 0.016 307.589);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.985 0.012 127.939);
--popover-foreground: oklch(0.163 0.028 128.253);
--card: oklch(0.985 0.012 127.939);
--card-foreground: oklch(0.163 0.028 128.253);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.914 0.159 130.23);
--primary-foreground: oklch(0.347 0.094 133.085);
--secondary: oklch(0.711 0.174 304.682);
--secondary-foreground: oklch(0.218 0.108 298.811);
--accent: oklch(0.711 0.174 304.682);
--accent-foreground: oklch(0.218 0.108 298.811);
--destructive: oklch(0.385 0.15 30.053);
--destructive-foreground: oklch(0.858 0.074 23.372);
--ring: oklch(0.914 0.159 130.23);
--chart-1: oklch(0.914 0.159 130.23);
--chart-2: oklch(0.711 0.174 304.682);
--chart-3: oklch(0.711 0.174 304.682);
--chart-4: oklch(0.742 0.154 305.231);
--chart-5: oklch(0.918 0.164 130.311);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.004 127.835);
--muted: oklch(0.192 0.023 306.36);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.002 127.812);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 127.812);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.914 0.159 130.23);
--primary-foreground: oklch(0.347 0.094 133.085);
--secondary: oklch(0.711 0.174 304.682);
--secondary-foreground: oklch(0.218 0.108 298.811);
--accent: oklch(0.711 0.174 304.682);
--accent-foreground: oklch(0.218 0.108 298.811);
--destructive: oklch(0.593 0.236 29.763);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.914 0.159 130.23);
--chart-1: oklch(0.914 0.159 130.23);
--chart-2: oklch(0.711 0.174 304.682);
--chart-3: oklch(0.711 0.174 304.682);
--chart-4: oklch(0.742 0.154 305.231);
--chart-5: oklch(0.918 0.164 130.311);
}