Welfare is a shadcn/ui theme built around a light green primary color (#e5edd9) with light violet accents (#e1d9ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e5edd9) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #030401black | #f8f8f6whitesmoke |
| Card | #ffffffwhite | #050703black |
| Card foreground | #030401black | #f8f8f6whitesmoke |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #030401black | #f8f8f6whitesmoke |
| Primary | #e5edd9beige | #e5edd9beige |
| Primary foreground | #181f0eblack | #181f0eblack |
| Secondary | #e1d9edgainsboro | #e1d9edgainsboro |
| Secondary foreground | #452f65darkslateblue | #452f65darkslateblue |
| Muted | #e4ddeelavender | #181122black |
| Muted foreground | #5a5266dimgray | #a299addarkgray |
| Accent | #e1d9edgainsboro | #e1d9edgainsboro |
| Accent foreground | #452f65darkslateblue | #452f65darkslateblue |
| Destructive | #b81714firebrick | #e83430crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5edd9beige | #e5edd9beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 14.07:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 14.07:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Welfare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.016 124.207);
--muted: oklch(0.907 0.025 304.66);
--muted-foreground: oklch(0.453 0.034 304.005);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.016 124.207);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.016 124.207);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.029 125.479);
--primary-foreground: oklch(0.229 0.032 127.227);
--secondary: oklch(0.897 0.03 304.591);
--secondary-foreground: oklch(0.358 0.094 301.024);
--accent: oklch(0.897 0.03 304.591);
--accent-foreground: oklch(0.358 0.094 301.024);
--destructive: oklch(0.5 0.192 28.407);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.029 125.479);
--chart-1: oklch(0.935 0.029 125.479);
--chart-2: oklch(0.897 0.03 304.591);
--chart-3: oklch(0.897 0.03 304.591);
--chart-4: oklch(0.925 0.021 304.727);
--chart-5: oklch(0.937 0.031 125.514);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 124.504);
--foreground: oklch(0.979 0.003 125.09);
--muted: oklch(0.195 0.036 302.333);
--muted-foreground: oklch(0.697 0.031 304.439);
--popover: oklch(0.124 0.013 124.504);
--popover-foreground: oklch(0.979 0.003 125.09);
--card: oklch(0.124 0.013 124.504);
--card-foreground: oklch(0.979 0.003 125.09);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.029 125.479);
--primary-foreground: oklch(0.229 0.032 127.227);
--secondary: oklch(0.897 0.03 304.591);
--secondary-foreground: oklch(0.358 0.094 301.024);
--accent: oklch(0.897 0.03 304.591);
--accent-foreground: oklch(0.358 0.094 301.024);
--destructive: oklch(0.609 0.216 27.216);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.029 125.479);
--chart-1: oklch(0.935 0.029 125.479);
--chart-2: oklch(0.897 0.03 304.591);
--chart-3: oklch(0.897 0.03 304.591);
--chart-4: oklch(0.925 0.021 304.727);
--chart-5: oklch(0.937 0.031 125.514);
}