Inbox Header
A copy-paste notification center component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Notification CenterHTMLCSSany framework
Inbox12
Copy into your project
HTML
<div class="nuda-inboxhd">
<div class="nuda-inboxhd__title">
Inbox
<span class="nuda-inboxhd__count">12</span>
</div>
<button class="nuda-inboxhd__mark">Mark all read</button>
</div>CSS
.nuda-inboxhd {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 14px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
width: 100%;
max-width: 280px;
}
.nuda-inboxhd__title {
display: inline-flex;
align-items: center;
gap: 8px;
color: #fafafa;
font-size: 14px;
font-weight: 700;
}
.nuda-inboxhd__count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
padding: 0 6px;
background: #ff5e7a;
color: #fafafa;
border-radius: 99px;
font-size: 10px;
font-weight: 700;
font-variant-numeric: tabular-nums;
animation: _cntBob .5s cubic-bezier(.34,1.56,.64,1);
}
.nuda-inboxhd__mark {
background: transparent;
border: 0;
color: #a0a0a8;
font-size: 11px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: background .2s,color .2s;
}
.nuda-inboxhd__mark:hover {
background: rgba(255,255,255,.04);
color: #e4ff54;
}
@keyframes _cntBob {
0% {
transform: scale(0);
}
60% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-inboxhd__count {
animation: none;
}
}
How to use Inbox Header
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.