Online Cluster
A copy-paste indicators component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
IndicatorsHTMLCSSany framework
8online
Copy into your project
HTML
<div class="nuda-onlcluster">
<span class="nuda-onlcluster__count">8</span>
<span class="nuda-onlcluster__label">online</span>
</div>CSS
.nuda-onlcluster {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
background: rgba(110,231,183,.06);
border: 1px solid rgba(110,231,183,.2);
border-radius: 99px;
color: #6ee7b7;
font-size: 11px;
font-weight: 600;
}
.nuda-onlcluster__count {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 50%;
background: #6ee7b7;
color: #09090b;
font-weight: 700;
font-variant-numeric: tabular-nums;
animation: _onlPulse 2s ease-in-out infinite;
}
@keyframes _onlPulse {
0%,100% {
box-shadow: 0 0 0 0 rgba(110,231,183,.5);
}
50% {
box-shadow: 0 0 0 4px rgba(110,231,183,0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-onlcluster__count {
animation: none;
}
}
How to use Online Cluster
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.