Husky is a shadcn/ui theme built around a light green primary color (#f0f8ed) with light pink accents (#f8edf0). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the light green primary (#f0f8ed) on a green-tinted background (#060c04).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #060c04black |
| Foreground | #020501black | #ffffffwhite |
| Card | #f6fbf3whitesmoke | #081005black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6fbf3whitesmoke | #081005black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f0f8edhoneydew | #f0f8edhoneydew |
| Primary foreground | #203716darkgreen | #203716darkgreen |
| Secondary | #edf0f8whitesmoke | #edf0f8whitesmoke |
| Secondary foreground | #334b80darkslateblue | #334b80darkslateblue |
| Muted | #d6dbe6gainsboro | #191e29black |
| Muted foreground | #4f5663dimgray | #9ca2b0darkgray |
| Accent | #f8edf0lavenderblush | #f8edf0lavenderblush |
| Accent foreground | #80334bbrown | #80334bbrown |
| Destructive | #691407maroon | #f25840tomato |
| Destructive foreground | #f9b4a9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f8edhoneydew | #f0f8edhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 11.93:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 11.93:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Husky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 135.463);
--foreground: oklch(0.102 0.023 133.257);
--muted: oklch(0.89 0.017 265.915);
--muted-foreground: oklch(0.451 0.023 265.694);
--popover: oklch(0.983 0.012 135.481);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.012 135.481);
--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.97 0.016 135.501);
--primary-foreground: oklch(0.308 0.062 136.66);
--secondary: oklch(0.955 0.011 265.954);
--secondary-foreground: oklch(0.421 0.093 264.058);
--accent: oklch(0.955 0.013 355.996);
--accent-foreground: oklch(0.434 0.109 2.948);
--destructive: oklch(0.342 0.12 31.712);
--destructive-foreground: oklch(0.831 0.083 28.767);
--ring: oklch(0.97 0.016 135.501);
--chart-1: oklch(0.97 0.016 135.501);
--chart-2: oklch(0.955 0.011 265.954);
--chart-3: oklch(0.955 0.013 355.996);
--chart-4: oklch(0.982 0.004 265.987);
--chart-5: oklch(0.97 0.018 135.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.022 134.019);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.023 265.293);
--muted-foreground: oklch(0.712 0.021 265.851);
--popover: oklch(0.159 0.026 134.715);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.026 134.715);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.97 0.016 135.501);
--primary-foreground: oklch(0.308 0.062 136.66);
--secondary: oklch(0.955 0.011 265.954);
--secondary-foreground: oklch(0.421 0.093 264.058);
--accent: oklch(0.955 0.013 355.996);
--accent-foreground: oklch(0.434 0.109 2.948);
--destructive: oklch(0.662 0.193 31.35);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.97 0.016 135.501);
--chart-1: oklch(0.97 0.016 135.501);
--chart-2: oklch(0.955 0.011 265.954);
--chart-3: oklch(0.955 0.013 355.996);
--chart-4: oklch(0.982 0.004 265.987);
--chart-5: oklch(0.97 0.018 135.506);
}