Skip to content

Glow Pulse

A copy-paste buttons component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

ButtonsHTMLCSSany framework

Copy into your project

HTML
<!-- Glow Pulse — button with pulsing glow shadow -->
<button class="nuda-glow-pulse">Glow Pulse</button>
CSS
/* ── Glow Pulse ──────────────────────────────────────────────
   Customize:
     --nuda-gp-bg     : button background
     --nuda-gp-clr    : text color
     --nuda-gp-glow   : glow color (use the same hue as bg)
     --nuda-gp-speed  : pulse cycle
   ──────────────────────────────────────────────────────────── */
.nuda-glow-pulse {
  --nuda-gp-bg: #6366f1;
  --nuda-gp-clr: #fff;
  --nuda-gp-glow: rgba(99, 102, 241, 0.5);
  --nuda-gp-speed: 2s;

  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nuda-gp-clr);
  background: var(--nuda-gp-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  animation: nuda-glow-pulse var(--nuda-gp-speed) ease-in-out infinite;
}

@keyframes nuda-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 8px var(--nuda-gp-glow), 0 0 24px var(--nuda-gp-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--nuda-gp-glow), 0 0 56px var(--nuda-gp-glow);
  }
}

/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nuda-glow-pulse {
    animation: none;
    box-shadow: 0 0 8px var(--nuda-gp-glow);
  }
}

How to use Glow Pulse

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More buttons components

← Browse all NudaUI components