Problem: Button with colored glow.

Solution#

html
<button class="rounded-xl bg-blue-600 px-6 py-3 font-semibold text-white shadow-lg shadow-blue-500/40 hover:shadow-blue-500/60 transition">Launch</button>

Why this works#

Colored shadow = glow; increase on hover.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns