Signal Bars
A copy-paste indicators component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
IndicatorsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-signal-bars" role="img" aria-label="Signal strength 3 of 4">
<span class="nuda-signal-bars__bar" data-active="true"></span>
<span class="nuda-signal-bars__bar" data-active="true"></span>
<span class="nuda-signal-bars__bar" data-active="true"></span>
<span class="nuda-signal-bars__bar" data-active="false"></span>
</div>CSS
/* Signal Bars
Animated signal strength indicator.
Customize: --signal-active, --signal-inactive */
.nuda-signal-bars {
--signal-active: #22c55e;
--signal-inactive: rgba(255, 255, 255, 0.15);
display: inline-flex;
align-items: flex-end;
gap: 3px;
height: 24px;
}
.nuda-signal-bars__bar {
width: 5px;
background: var(--signal-inactive);
border-radius: 2px;
transform-origin: bottom;
animation: nuda-signal-grow 0.5s ease-out both;
}
.nuda-signal-bars__bar:nth-child(1) { height: 25%; }
.nuda-signal-bars__bar:nth-child(2) { height: 50%; animation-delay: 0.08s; }
.nuda-signal-bars__bar:nth-child(3) { height: 75%; animation-delay: 0.16s; }
.nuda-signal-bars__bar:nth-child(4) { height: 100%; animation-delay: 0.24s; }
.nuda-signal-bars__bar[data-active="true"] {
background: var(--signal-active);
}
@keyframes nuda-signal-grow {
0% { transform: scaleY(0); }
100% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-signal-bars__bar {
animation: none;
}
}How to use Signal Bars
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.