Digest Summary Card
A copy-paste notification center component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Notification CenterHTMLCSSany framework
12
New notifications
since Monday
Copy into your project
HTML
<div class="nuda-nc2-digest" role="status" aria-live="polite">
<span class="nuda-nc2-digest__count">12</span>
<div class="nuda-nc2-digest__body">
<div class="nuda-nc2-digest__title">New notifications</div>
<div class="nuda-nc2-digest__sub">since Monday</div>
<div class="nuda-nc2-digest__bar" aria-hidden="true"><span></span></div>
</div>
</div>CSS
.nuda-nc2-digest {
display: flex;
align-items: center;
gap: 12px;
padding: 14px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 12px;
width: 100%;
max-width: 290px;
}
.nuda-nc2-digest__count {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 10px;
background: rgba(228,255,84,.1);
color: #e4ff54;
font-size: 16px;
font-weight: 800;
font-variant-numeric: tabular-nums;
animation: _nuda-nc2digest-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.nuda-nc2-digest__body {
flex: 1;
min-width: 0;
}
.nuda-nc2-digest__title {
color: #fafafa;
font-size: 13px;
font-weight: 700;
}
.nuda-nc2-digest__sub {
color: #777;
font-size: 11px;
margin-top: 1px;
}
.nuda-nc2-digest__bar {
margin-top: 7px;
height: 4px;
border-radius: 99px;
background: rgba(255,255,255,.08);
overflow: hidden;
}
.nuda-nc2-digest__bar span {
display: block;
height: 100%;
width: 100%;
background: #e4ff54;
border-radius: 99px;
transform-origin: left;
transform: scaleX(0);
animation: _nuda-nc2digest-fill 1s .1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes _nuda-nc2digest-pop {
from {
transform: scale(.6);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes _nuda-nc2digest-fill {
to {
transform: scaleX(.7);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-nc2-digest__count {
animation: none;
}
.nuda-nc2-digest__bar span {
animation: none;
transform: scaleX(.7);
}
}
How to use Digest Summary Card
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.