Max Count Indicator
A copy-paste tags & chips input component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Tags & Chips InputHTMLCSSany framework
designcodetoolsideasnotes
Copy into your project
HTML
<div class="nuda-chip-max">
<div class="nuda-chip-max__row">
<span class="nuda-chip-max__chip">design</span>
<span class="nuda-chip-max__chip">code</span>
<span class="nuda-chip-max__chip">tools</span>
<span class="nuda-chip-max__chip">ideas</span>
<span class="nuda-chip-max__chip">notes</span>
</div>
<div class="nuda-chip-max__meta">
<span class="nuda-chip-max__count">5 / 10</span>
<span class="nuda-chip-max__bar"><span style="width:50%"></span></span>
</div>
</div>CSS
/* Max Count Indicator
Shows "n / max" plus a progress bar.
Customize: --max-accent */
.nuda-chip-max {
--max-accent: #e4ff54;
width: 100%;
max-width: 280px;
font: 500 12px/1.4 ui-sans-serif, system-ui, sans-serif;
color: #fafafa;
}
.nuda-chip-max__row {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.nuda-chip-max__chip {
padding: 4px 10px;
background: #111114;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 99px;
}
.nuda-chip-max__meta {
display: flex;
align-items: center;
gap: 8px;
}
.nuda-chip-max__count {
font-size: 11px;
color: #a0a0a8;
font-variant-numeric: tabular-nums;
}
.nuda-chip-max__bar {
flex: 1;
height: 3px;
background: rgba(255, 255, 255, 0.06);
border-radius: 99px;
overflow: hidden;
}
.nuda-chip-max__bar > span {
display: block;
height: 100%;
background: var(--max-accent);
border-radius: 99px;
transition: width 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
.nuda-chip-max__bar > span { transition: none; }
}How to use Max Count Indicator
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.