Mobile Tab Bar
A copy-paste mobile patterns component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Mobile PatternsHTMLCSSany framework
Copy into your project
HTML
<nav class="nuda-tabbar" aria-label="Primary">
<button type="button" class="nuda-tabbar__btn nuda-tabbar__btn--active" aria-current="page">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 11l9-8 9 8v10a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z"/></svg>
<span>Home</span>
</button>
<button type="button" class="nuda-tabbar__btn">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>
<span>Search</span>
</button>
<button type="button" class="nuda-tabbar__btn">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z"/></svg>
<span>Saved</span>
</button>
<button type="button" class="nuda-tabbar__btn">
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>
<span>Profile</span>
</button>
</nav>CSS
/* Mobile Tab Bar
Glass tab bar with active dot indicator.
Customize: --tabbar-accent, --tabbar-bg */
.nuda-tabbar {
--tabbar-accent: #e4ff54;
--tabbar-bg: rgba(12, 12, 16, 0.85);
display: flex;
align-items: stretch;
justify-content: space-around;
gap: 4px;
width: 280px;
padding: 8px 6px;
background: var(--tabbar-bg);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 18px;
font-family: system-ui;
}
.nuda-tabbar__btn {
position: relative;
appearance: none;
flex: 1;
background: transparent;
border: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
color: #63636e;
font: 600 9.5px/1 system-ui;
min-height: 44px;
padding: 6px 4px;
cursor: pointer;
transition: color 0.2s;
}
.nuda-tabbar__btn:hover { color: #a0a0a8; }
.nuda-tabbar__btn--active { color: var(--tabbar-accent); }
.nuda-tabbar__btn--active::after {
content: "";
position: absolute;
bottom: 2px;
left: 50%;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--tabbar-accent);
transform: translateX(-50%);
animation: nuda-tabbar-dot 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
box-shadow: 0 0 8px var(--tabbar-accent);
}
@keyframes nuda-tabbar-dot {
from { transform: translateX(-50%) scale(0); opacity: 0; }
to { transform: translateX(-50%) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-tabbar__btn--active::after { animation: none; }
}How to use Mobile Tab Bar
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.