Icon Halo
A copy-paste neon & glow component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Neon & GlowHTMLCSSany framework
Copy into your project
HTML
<!-- Icon Halo — a soft ring of light breathes behind an icon -->
<div class="nuda-ne2-halo" role="img" aria-label="Notifications">
<span class="nuda-ne2-halo__ring" aria-hidden="true"></span>
<svg class="nuda-ne2-halo__icon" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<path d="M12 2a6 6 0 0 0-6 6v3.586l-1.707 1.707A1 1 0 0 0 5 15h14a1 1 0 0 0 .707-1.707L18 11.586V8a6 6 0 0 0-6-6Z" fill="currentColor" />
<path d="M9.5 18a2.5 2.5 0 0 0 5 0h-5Z" fill="currentColor" />
</svg>
</div>CSS
.nuda-ne2-halo {
position: relative;
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
}
.nuda-ne2-halo__ring {
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle,rgba(228,255,84,.55),transparent 70%);
filter: blur(2px);
animation: _nuda-ne2halo 3s ease-in-out infinite;
}
.nuda-ne2-halo__icon {
position: relative;
z-index: 1;
width: 26px;
height: 26px;
color: #fbffe0;
filter: drop-shadow(0 0 4px rgba(228,255,84,.8));
}
@keyframes _nuda-ne2halo {
0%,100% {
transform: scale(.85);
opacity: .55;
}
50% {
transform: scale(1.15);
opacity: 1;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ne2-halo__ring {
animation: none;
transform: scale(1);
opacity: .8;
}
}
How to use Icon Halo
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.