Glass Badge
A copy-paste glassmorphism component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
GlassmorphismHTMLCSSany framework
Online
Copy into your project
HTML
<span class="nuda-glass-badge">
<span class="nuda-glass-badge__dot" aria-hidden="true"></span>
Online
</span>CSS
/* Glass Badge
Translucent status chip with a pulsing lime dot.
Customize: --glass-badge-accent */
.nuda-glass-badge {
--glass-badge-accent: #e4ff54;
display: inline-flex;
align-items: center;
gap: 7px;
padding: 6px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.14);
backdrop-filter: blur(10px) saturate(140%);
-webkit-backdrop-filter: blur(10px) saturate(140%);
color: #fafafa;
font: 600 0.74rem ui-sans-serif, system-ui;
}
.nuda-glass-badge__dot {
position: relative;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--glass-badge-accent);
}
.nuda-glass-badge__dot::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: var(--glass-badge-accent);
animation: nuda-glass-badge-pulse 2s ease-out infinite;
will-change: transform, opacity;
}
@keyframes nuda-glass-badge-pulse {
0% { transform: scale(1); opacity: 0.7; }
100% { transform: scale(3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-glass-badge__dot::after {
animation: none;
opacity: 0;
}
}How to use Glass Badge
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.