Whelp is a shadcn/ui theme built around a vivid green primary color (#85ef2e) with neutral gray accents (#e3e3e3). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid green primary (#85ef2e) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #020401black |
| Foreground | #0a1004black | #fafaf9snow |
| Card | #f7fbf4whitesmoke | #050802black |
| Card foreground | #070c03black | #fcfdfcwhite |
| Popover | #fafcf8snow | #020401black |
| Popover foreground | #0a1004black | #fafaf9snow |
| Primary | #85ef2eyellowgreen | #85ef2eyellowgreen |
| Primary foreground | #254c06darkgreen | #254c06darkgreen |
| Secondary | #e3e3e3gainsboro | #292b27darkslategray |
| Secondary foreground | #4a4a4adarkslategray | #c1c5bfsilver |
| Muted | #f1e9e9linen | #11160eblack |
| Muted foreground | #554444darkslategray | #b2bbaadarkgray |
| Accent | #e3e3e3gainsboro | #292b27darkslategray |
| Accent foreground | #4a4a4adarkslategray | #c1c5bfsilver |
| Destructive | #b90404firebrick | #eb0505red |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #85ef2eyellowgreen | #85ef2eyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.68:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 9.23:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.61:1 | AA |
Paste this into your globals.css to use Whelp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 130.498);
--foreground: oklch(0.163 0.028 130.418);
--muted: oklch(0.941 0.009 17.315);
--muted-foreground: oklch(0.405 0.023 18.155);
--popover: oklch(0.988 0.006 130.498);
--popover-foreground: oklch(0.163 0.028 130.418);
--card: oklch(0.982 0.009 130.528);
--card-foreground: oklch(0.145 0.024 129.297);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.235 135.061);
--primary-foreground: oklch(0.373 0.104 135.197);
--secondary: oklch(0.916 0 180);
--secondary-foreground: oklch(0.409 0 190.305);
--accent: oklch(0.916 0 180);
--accent-foreground: oklch(0.409 0 190.305);
--destructive: oklch(0.494 0.201 29.042);
--destructive-foreground: oklch(0.967 0.016 17.432);
--ring: oklch(0.856 0.235 135.061);
--chart-1: oklch(0.856 0.235 135.061);
--chart-2: oklch(0.916 0 180);
--chart-3: oklch(0.916 0 180);
--chart-4: oklch(0.939 0 180);
--chart-5: oklch(0.864 0.241 135.237);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.015 129.219);
--foreground: oklch(0.986 0.002 130.453);
--muted: oklch(0.192 0.017 131.346);
--muted-foreground: oklch(0.78 0.026 130.75);
--popover: oklch(0.1 0.015 129.219);
--popover-foreground: oklch(0.986 0.002 130.453);
--card: oklch(0.126 0.019 129.219);
--card-foreground: oklch(0.993 0.001 130.445);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.235 135.061);
--primary-foreground: oklch(0.373 0.104 135.197);
--secondary: oklch(0.285 0.008 130.704);
--secondary-foreground: oklch(0.819 0.009 130.544);
--accent: oklch(0.285 0.008 130.704);
--accent-foreground: oklch(0.819 0.009 130.544);
--destructive: oklch(0.591 0.241 29.091);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.235 135.061);
--chart-1: oklch(0.856 0.235 135.061);
--chart-2: oklch(0.285 0.008 130.704);
--chart-3: oklch(0.285 0.008 130.704);
--chart-4: oklch(0.316 0.009 130.715);
--chart-5: oklch(0.864 0.241 135.237);
}