Glow Button

A primary button with a soft neon glow that intensifies on hover.

Tailwind CSS
<button class="px-6 py-3 rounded-xl bg-indigo-600 text-white font-semibold text-sm shadow-[0_0_20px_rgba(99,102,241,0.5)] hover:shadow-[0_0_32px_rgba(99,102,241,0.7)] hover:-translate-y-0.5 transition-all duration-200">
  Get started
</button>

Free to use in personal and commercial projects. No attribution required.

Variants

Same component, different looks. Preview each one live and copy the code you like.

Emerald

Fits eco, health, or finance products where green signals go and growth.

Tailwind CSS

Rose, soft glow

A softer glow for brands that want warmth without the neon intensity.

Tailwind CSS

Large CTA

Bigger padding and type for hero sections where the button must dominate.

Tailwind CSS

Where to use it

  • ✓ SaaS hero CTAs
  • ✓ AI product launches
  • ✓ Gaming and entertainment sites
  • ✓ Newsletter signup buttons

About this glow button

The glow button is the go-to primary CTA when you want a button that feels alive. A soft neon shadow in the brand color surrounds the button, then intensifies on hover while the button lifts slightly. It is the same pattern you see on AI product launches and gaming sites, where the glow suggests energy and modernity.

This tailwind glow button uses arbitrary shadow values for precise control: shadow-[0_0_20px_rgba(99,102,241,0.5)] at rest, expanding to 32px on hover. The -translate-y-0.5 lift combined with the growing glow creates a physical press-me affordance.

Use glow sparingly. One glowing primary button per section is the max; if everything glows, nothing does. Pair it with muted secondary buttons so the glow keeps its meaning: this is the action I want you to take.

On a dark, saturated landing page, a plain solid button disappears. Heroes are full of gradients, product shots, and headlines competing for the eye, and a flat CTA has no visual gravity in that crowd. The glow button solves this with a halo of brand-colored light that the peripheral vision picks up before the user even looks directly at it. That is why you see it on AI launches and gaming sites: when one action must win the page, light beats color.

The effect is a single box-shadow with zero offsets and a large blur: shadow-[0_0_20px_rgba(99,102,241,0.5)] spreads indigo light evenly in every direction. On hover the shadow grows to shadow-[0_0_32px_rgba(99,102,241,0.7)] while the button rises with hover:-translate-y-0.5, so the light blooms as the button lifts toward the cursor. The transition-all duration-200 keeps both changes synchronized in one smooth motion.

Build a glow scale and stick to it: 12px blur for quiet secondary actions, 20px for the primary CTA, 32px or more only for hero moments. When every button glows at full strength, none of them stands out and the page looks electric in the wrong way. Tie the glow color to your CSS variables so a rebrand updates every halo at once. And test the glow at half screen brightness on a real phone; halos that look perfect on a bright monitor often disappear outdoors.

The mistake is trusting the glow to carry the button's importance everywhere. In Windows High Contrast Mode and other forced-colors settings, box-shadows are stripped out, and your hero CTA suddenly looks identical to every secondary button. Build the hierarchy so it survives without the glow: the solid background, the size, and the placement must say primary on their own, with the glow as decoration on top.

Frequently asked questions

How do I make a glowing button in Tailwind?

Use arbitrary box-shadow values: shadow-[0_0_20px_rgba(99,102,241,0.5)]. Increase the blur and opacity on hover for the intensifying effect. Add -translate-y-0.5 for the lift.

Are glow buttons bad for accessibility?

The glow is decorative and does not affect contrast of the button text itself. Ensure the button text still meets contrast ratios against the button background.

Should every button glow?

No. Reserve glow for the single primary action per section. Secondary actions should use muted styles so the glowing button keeps its visual priority.

How do I change the glow button color to my brand color?

Change the rgba values inside the shadow-[0_0_20px_rgba(...)] class to your brand color, keeping the alpha around 0.5 for a clean glow. Also update the bg color class on the button itself. The hover state uses a wider blur with higher opacity, so update both classes for a consistent look.

Why does my glow look too weak on a light background?

Glows are light cast onto darkness, so they always read stronger on dark backgrounds. On light backgrounds, use a darker and more saturated glow color, or increase the blur and opacity. The customization notes on this page suggest raising glow opacity on dark surfaces and dropping the blur to 12px for a subtler look.

Can I make the glow pulse without hover?

Yes. Add Tailwind's animate-pulse to the button, or define a keyframes rule that animates the box-shadow blur between two values. A slow pulse around 2 seconds works well for launch-day CTAs because it draws the eye without needing a hover. Keep it slow so it feels alive instead of alarming.

Design notes

When to use

Use it for the single primary CTA in a hero section where you want energy and urgency, like a SaaS signup button or a launch page call to action. The intensifying glow on hover rewards the cursor and makes the button feel alive, which suits AI products, gaming sites, and launch announcements. Pair it with quiet secondary buttons so the glow keeps its meaning.

What to avoid

Do not put a glow on every button on the page. When secondary actions, nav links, and footers all glow, the hierarchy collapses and nothing feels primary. Also skip it on light, minimal layouts where a neon shadow looks out of place; a flat button fits those better.

Accessibility

The glow is decorative, so make sure the button text still meets contrast against its solid background. Keep a visible keyboard focus ring, since the hover glow does nothing for keyboard users.

Customization tips

Change the rgba color to match your brand. For a subtler effect, reduce the blur from 20px to 12px. On dark backgrounds, increase the glow opacity since glows read stronger on dark.

Customize it with our tools