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

Go to generator

10000+Themes for shadcn/ui

Waistband for shadcn/ui

Waistband is a shadcn/ui theme built around a vivid deep purple primary color (#180218) with vivid deep green accents (#021802). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the vivid deep purple primary (#180218) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf6fdsnow
#040104black
Foreground
#000000black
#faf5faghostwhite
Card
#fdf6fdsnow
#040104black
Card foreground
#000000black
#faf5faghostwhite
Popover
#fdf6fdsnow
#040104black
Popover foreground
#000000black
#faf5faghostwhite
Primary
#180218black
#180218black
Primary foreground
#f457f2violet
#f457f2violet
Secondary
#021802black
#021802black
Secondary foreground
#0ed811lime
#0ed811lime
Muted
#edf7eehoneydew
#081208black
Muted foreground
#3e463edarkslategray
#b9c1b9silver
Accent
#021802black
#021802black
Accent foreground
#0ed811lime
#0ed811lime
Destructive
#ce1909firebrick
#e61c0ared
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#180218black
#180218black

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.07:1AAA
Secondary button9.57:1AAA
Muted text8.90:1AAA
Accent9.57:1AAA
Destructive5.59:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button7.07:1AAA
Secondary button9.57:1AAA
Muted text10.37:1AAA
Accent9.57:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.012 326.149);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.967 0.016 145.917);
  --muted-foreground: oklch(0.385 0.017 145.694);
  --popover: oklch(0.982 0.012 326.149);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.012 326.149);
  --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.151 0.061 328.699);
  --primary-foreground: oklch(0.721 0.254 328.503);
  --secondary: oklch(0.183 0.056 143.293);
  --secondary-foreground: oklch(0.765 0.256 142.611);
  --accent: oklch(0.183 0.056 143.293);
  --accent-foreground: oklch(0.765 0.256 142.611);
  --destructive: oklch(0.542 0.212 30.069);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.151 0.061 328.699);
  --chart-1: oklch(0.151 0.061 328.699);
  --chart-2: oklch(0.183 0.056 143.293);
  --chart-3: oklch(0.183 0.056 143.293);
  --chart-4: oklch(0.236 0.074 143.087);
  --chart-5: oklch(0.151 0.063 328.772);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.018 327.407);
  --foreground: oklch(0.975 0.008 326.124);
  --muted: oklch(0.167 0.025 144.799);
  --muted-foreground: oklch(0.801 0.014 145.911);
  --popover: oklch(0.087 0.018 327.407);
  --popover-foreground: oklch(0.975 0.008 326.124);
  --card: oklch(0.087 0.018 327.407);
  --card-foreground: oklch(0.975 0.008 326.124);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.151 0.061 328.699);
  --primary-foreground: oklch(0.721 0.254 328.503);
  --secondary: oklch(0.183 0.056 143.293);
  --secondary-foreground: oklch(0.765 0.256 142.611);
  --accent: oklch(0.183 0.056 143.293);
  --accent-foreground: oklch(0.765 0.256 142.611);
  --destructive: oklch(0.589 0.231 30.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.151 0.061 328.699);
  --chart-1: oklch(0.151 0.061 328.699);
  --chart-2: oklch(0.183 0.056 143.293);
  --chart-3: oklch(0.183 0.056 143.293);
  --chart-4: oklch(0.236 0.074 143.087);
  --chart-5: oklch(0.151 0.063 328.772);
}