Needy is a shadcn/ui theme built around a muted green primary color (#c0c799) with muted indigo accents (#a099c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#c0c799) on a green-tinted background (#0a0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0b04black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #ffffffwhite | #0a0b04black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0a0b04black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #c0c799tan | #c0c799tan |
| Primary foreground | #1c1e10black | #1c1e10black |
| Secondary | #a099c7darkgray | #a099c7darkgray |
| Secondary foreground | #12101eblack | #12101eblack |
| Muted | #e4e2eelavender | #13111dblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #a099c7darkgray | #a099c7darkgray |
| Accent foreground | #12101eblack | #12101eblack |
| Destructive | #a60f07darkred | #f0150ared |
| Destructive foreground | #fee3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0c799tan | #c0c799tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.48:1 | AA |
| Accent | 7.03:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 7.03:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Needy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.918 0.016 292.987);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.812 0.062 114.73);
--primary-foreground: oklch(0.227 0.024 115.32);
--secondary: oklch(0.705 0.067 291.466);
--secondary-foreground: oklch(0.184 0.027 290.362);
--accent: oklch(0.705 0.067 291.466);
--accent-foreground: oklch(0.184 0.027 290.362);
--destructive: oklch(0.462 0.182 29.493);
--destructive-foreground: oklch(0.937 0.03 21.309);
--ring: oklch(0.812 0.062 114.73);
--chart-1: oklch(0.812 0.062 114.73);
--chart-2: oklch(0.705 0.067 291.466);
--chart-3: oklch(0.705 0.067 291.466);
--chart-4: oklch(0.734 0.06 291.738);
--chart-5: oklch(0.818 0.068 114.86);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.017 114.21);
--foreground: oklch(0.994 0.001 113.331);
--muted: oklch(0.187 0.023 290.842);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.146 0.017 114.21);
--popover-foreground: oklch(0.994 0.001 113.331);
--card: oklch(0.146 0.017 114.21);
--card-foreground: oklch(0.994 0.001 113.331);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.812 0.062 114.73);
--primary-foreground: oklch(0.227 0.024 115.32);
--secondary: oklch(0.705 0.067 291.466);
--secondary-foreground: oklch(0.184 0.027 290.362);
--accent: oklch(0.705 0.067 291.466);
--accent-foreground: oklch(0.184 0.027 290.362);
--destructive: oklch(0.605 0.241 29.5);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.062 114.73);
--chart-1: oklch(0.812 0.062 114.73);
--chart-2: oklch(0.705 0.067 291.466);
--chart-3: oklch(0.705 0.067 291.466);
--chart-4: oklch(0.734 0.06 291.738);
--chart-5: oklch(0.818 0.068 114.86);
}