Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Hack The Box-Lite for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background7.24:1AAA
Text on card8.92:1AAA
Primary button7.90:1AAA
Secondary button7.66:1AAA
Muted text5.99:1AA
Accent7.30:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background7.24:1AAA
Text on card8.92:1AAA
Primary button7.90:1AAA
Secondary button7.66:1AAA
Muted text5.99:1AA
Accent7.30:1AAA
Destructive4.13:1AA Large

CSS variables

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);
}