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

Go to generator

10000+Themes for shadcn/ui

Horizon for shadcn/ui

Horizon is a shadcn/ui theme built around a vivid red primary color (#e95379) with muted deep blue accents (#3d4152). The light mode uses a blue-tinted background (#1c1e26). Dark mode keeps the vivid red primary (#e95379) on a blue-tinted background (#1c1e26).

Color palette

TokenLightDark
Background
#1c1e26black
#1c1e26black
Foreground
#bababasilver
#bababasilver
Card
#181a20black
#181a20black
Card foreground
#c7c7c7silver
#c7c7c7silver
Popover
#16171dblack
#16171dblack
Popover foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary
#e95379indianred
#e95379indianred
Primary foreground
#000000black
#000000black
Secondary
#532d36darkslategray
#532d36darkslategray
Secondary foreground
#e4cdd3lightgrey
#e4cdd3lightgrey
Muted
#262831darkslategray
#262831darkslategray
Muted foreground
#a1a5b5darkgray
#a1a5b5darkgray
Accent
#3d4152darkslategray
#3d4152darkslategray
Accent foreground
#dcdee5gainsboro
#dcdee5gainsboro
Destructive
#fd2d0dorangered
#fd2d0dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2c2d30darkslategray
#2c2d30darkslategray
Input
#333438darkslategray
#333438darkslategray
Ring
#e95379indianred
#e95379indianred

Contrast

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

Light mode
Text on background8.55:1AAA
Text on card10.32:1AAA
Primary button5.98:1AA
Secondary button7.80:1AAA
Muted text5.97:1AA
Accent7.53:1AAA
Destructive3.79:1AA Large
Dark mode
Text on background8.55:1AAA
Text on card10.32:1AAA
Primary button5.98:1AA
Secondary button7.80:1AAA
Muted text5.97:1AA
Accent7.53:1AAA
Destructive3.79:1AA Large

CSS variables

Paste this into your globals.css to use Horizon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.237 0.016 274.131);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.279 0.016 274.278);
  --muted-foreground: oklch(0.723 0.024 274.609);
  --popover: oklch(0.207 0.012 274.218);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.217 0.013 274.185);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.296 0.007 274.746);
  --input: oklch(0.325 0.008 274.735);
  --primary: oklch(0.653 0.185 8.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.348 0.058 4.424);
  --secondary-foreground: oklch(0.87 0.027 0.719);
  --accent: oklch(0.378 0.03 273.921);
  --accent-foreground: oklch(0.9 0.01 274.895);
  --destructive: oklch(0.638 0.242 31.205);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.185 8.687);
  --chart-1: oklch(0.653 0.185 8.687);
  --chart-2: oklch(0.348 0.058 4.424);
  --chart-3: oklch(0.378 0.03 273.921);
  --chart-4: oklch(0.375 0.063 4.525);
  --chart-5: oklch(0.654 0.192 9.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.237 0.016 274.131);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.279 0.016 274.278);
  --muted-foreground: oklch(0.723 0.024 274.609);
  --popover: oklch(0.207 0.012 274.218);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.217 0.013 274.185);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.296 0.007 274.746);
  --input: oklch(0.325 0.008 274.735);
  --primary: oklch(0.653 0.185 8.687);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.348 0.058 4.424);
  --secondary-foreground: oklch(0.87 0.027 0.719);
  --accent: oklch(0.378 0.03 273.921);
  --accent-foreground: oklch(0.9 0.01 274.895);
  --destructive: oklch(0.638 0.242 31.205);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.653 0.185 8.687);
  --chart-1: oklch(0.653 0.185 8.687);
  --chart-2: oklch(0.348 0.058 4.424);
  --chart-3: oklch(0.378 0.03 273.921);
  --chart-4: oklch(0.375 0.063 4.525);
  --chart-5: oklch(0.654 0.192 9.109);
}