Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Hack The Box-Lite is a shadcn/ui theme built around a muted blue primary color (#a3b0cc) with blue accents (#344765). The light mode uses a blue-tinted background (#1a2332). Dark mode keeps the muted blue primary (#a3b0cc) on a blue-tinted background (#1a2332).
| Token | Light | Dark |
|---|---|---|
| Background | #1a2332darkslategray | #1a2332darkslategray |
| Foreground | #a3b0cclightsteelblue | #a3b0cclightsteelblue |
| Card | #171e2cblack | #171e2cblack |
| Card foreground | #b3bed5lightsteelblue | #b3bed5lightsteelblue |
| Popover | #151c28black | #151c28black |
| Popover foreground | #c4ccdelightgrey | #c4ccdelightgrey |
| Primary | #a3b0cclightsteelblue | #a3b0cclightsteelblue |
| Primary foreground | #161b27black | #161b27black |
| Secondary | #343b4cdarkslategray | #343b4cdarkslategray |
| Secondary foreground | #d1d6e0gainsboro | #d1d6e0gainsboro |
| Muted | #2b2f36darkslategray | #2b2f36darkslategray |
| Muted foreground | #a6aeb9darkgray | #a6aeb9darkgray |
| Accent | #344765darkslategray | #344765darkslategray |
| Accent foreground | #dde3eelavender | #dde3eelavender |
| Destructive | #ed3131crimson | #ed3131crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #28303edarkslategray | #28303edarkslategray |
| Input | #2e3748darkslategray | #2e3748darkslategray |
| Ring | #a3b0cclightsteelblue | #a3b0cclightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.24:1 | AAA |
| Text on card | 8.92:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 4.13:1 | AA Large |
| Text on background | 7.24:1 | AAA |
| Text on card | 8.92:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Hack The Box-Lite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.255 0.032 261.092);
--foreground: oklch(0.756 0.043 265.652);
--muted: oklch(0.304 0.014 259.922);
--muted-foreground: oklch(0.748 0.019 259.945);
--popover: oklch(0.225 0.027 261.134);
--popover-foreground: oklch(0.845 0.027 265.834);
--card: oklch(0.235 0.028 261.118);
--card-foreground: oklch(0.801 0.035 265.753);
--border: oklch(0.308 0.028 261.259);
--input: oklch(0.336 0.032 261.246);
--primary: oklch(0.756 0.043 265.652);
--primary-foreground: oklch(0.224 0.025 265.16);
--secondary: oklch(0.353 0.031 265.402);
--secondary-foreground: oklch(0.876 0.015 265.926);
--accent: oklch(0.395 0.057 259.662);
--accent-foreground: oklch(0.915 0.015 261.502);
--destructive: oklch(0.615 0.223 26.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.756 0.043 265.652);
--chart-1: oklch(0.756 0.043 265.652);
--chart-2: oklch(0.353 0.031 265.402);
--chart-3: oklch(0.395 0.057 259.662);
--chart-4: oklch(0.381 0.034 265.385);
--chart-5: oklch(0.754 0.048 265.602);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.255 0.032 261.092);
--foreground: oklch(0.756 0.043 265.652);
--muted: oklch(0.304 0.014 259.922);
--muted-foreground: oklch(0.748 0.019 259.945);
--popover: oklch(0.225 0.027 261.134);
--popover-foreground: oklch(0.845 0.027 265.834);
--card: oklch(0.235 0.028 261.118);
--card-foreground: oklch(0.801 0.035 265.753);
--border: oklch(0.308 0.028 261.259);
--input: oklch(0.336 0.032 261.246);
--primary: oklch(0.756 0.043 265.652);
--primary-foreground: oklch(0.224 0.025 265.16);
--secondary: oklch(0.353 0.031 265.402);
--secondary-foreground: oklch(0.876 0.015 265.926);
--accent: oklch(0.395 0.057 259.662);
--accent-foreground: oklch(0.915 0.015 261.502);
--destructive: oklch(0.615 0.223 26.831);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.756 0.043 265.652);
--chart-1: oklch(0.756 0.043 265.652);
--chart-2: oklch(0.353 0.031 265.402);
--chart-3: oklch(0.395 0.057 259.662);
--chart-4: oklch(0.381 0.034 265.385);
--chart-5: oklch(0.754 0.048 265.602);
}