Status Bar Mock
A copy-paste mobile patterns component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Mobile PatternsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-statusbar" role="img" aria-label="9:41, signal strong, battery 78 percent">
<div class="nuda-statusbar__time">9:41</div>
<div class="nuda-statusbar__notch" aria-hidden="true"></div>
<div class="nuda-statusbar__right" aria-hidden="true">
<div class="nuda-statusbar__signal"><span></span><span></span><span></span><span></span></div>
<svg viewBox="0 0 20 14" width="14" height="10" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M2 7a8 8 0 0 1 16 0M5 9a5 5 0 0 1 10 0M8 11a2 2 0 0 1 4 0"/>
</svg>
<div class="nuda-statusbar__bat"><div class="nuda-statusbar__bat-fill"></div></div>
</div>
</div>CSS
/* Status Bar Mock
iOS-style status row with time, signal, wifi and battery.
Customize: --sb-accent */
.nuda-statusbar {
--sb-accent: #e4ff54;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 280px;
height: 40px;
padding: 0 18px;
background: #09090b;
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 18px;
font-family: system-ui;
color: #fafafa;
}
.nuda-statusbar__time { font: 700 14px/1 system-ui; letter-spacing: -0.2px; }
.nuda-statusbar__notch {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 18px;
background: #000;
border-radius: 0 0 14px 14px;
}
.nuda-statusbar__right {
display: flex;
align-items: center;
gap: 6px;
}
.nuda-statusbar__signal {
display: flex;
align-items: flex-end;
gap: 1.5px;
height: 10px;
}
.nuda-statusbar__signal span {
width: 2.5px;
background: #fafafa;
border-radius: 1px;
}
.nuda-statusbar__signal span:nth-child(1) { height: 30%; }
.nuda-statusbar__signal span:nth-child(2) { height: 55%; }
.nuda-statusbar__signal span:nth-child(3) { height: 80%; }
.nuda-statusbar__signal span:nth-child(4) { height: 100%; }
.nuda-statusbar__bat {
position: relative;
width: 22px;
height: 10px;
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 3px;
padding: 1px;
}
.nuda-statusbar__bat::after {
content: "";
position: absolute;
top: 50%;
right: -3px;
transform: translateY(-50%);
width: 1.5px;
height: 4px;
background: rgba(255, 255, 255, 0.6);
border-radius: 1px;
}
.nuda-statusbar__bat-fill {
height: 100%;
width: 78%;
background: var(--sb-accent);
border-radius: 1px;
animation: nuda-bat-breathe 3s ease-in-out infinite;
}
@keyframes nuda-bat-breathe {
0%, 100% { opacity: 0.85; }
50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-statusbar__bat-fill { animation: none; }
}How to use Status Bar Mock
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.