Skip to content

Glow Text

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

Neon & GlowHTMLCSSany framework
glow

Copy into your project

HTML
<!-- Glow Text — soft breathing text glow -->
<span class="nuda-neon-text">glow</span>
CSS
/* ── Glow Text ───────────────────────────────────────────────
   The halo gently expands and contracts (no opacity flicker).
   Customize:
     --neon-text-color : neon hue
     --neon-text-speed : breathe cycle
   ──────────────────────────────────────────────────────────── */
.nuda-neon-text {
  --neon-text-color: #e4ff54;
  --neon-text-speed: 3.4s;
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fbffe0;
  text-shadow: 0 0 6px var(--neon-text-color), 0 0 18px rgba(228, 255, 84, 0.7);
  animation: nuda-neon-text-breathe var(--neon-text-speed) ease-in-out infinite;
  will-change: text-shadow;
}

@keyframes nuda-neon-text-breathe {
  0%, 100% {
    text-shadow: 0 0 4px var(--neon-text-color), 0 0 12px rgba(228, 255, 84, 0.5);
  }
  50% {
    text-shadow:
      0 0 10px var(--neon-text-color),
      0 0 28px rgba(228, 255, 84, 0.9),
      0 0 52px rgba(228, 255, 84, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-neon-text {
    animation: none;
    text-shadow: 0 0 8px var(--neon-text-color), 0 0 20px rgba(228, 255, 84, 0.6);
  }
}

How to use Glow Text

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 neon & glow components

← Browse all NudaUI components