Mention Notification
A copy-paste notification center component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Notification CenterHTMLCSSany framework
@
Sara mentioned you in #design
"@you we should ship the lime accent"Copy into your project
HTML
<div class="nuda-mention">
<span class="nuda-mention__at">@</span>
<div class="nuda-mention__body">
<div><strong>Sara</strong> mentioned you in <em>#design</em></div>
<span>"@you we should ship the lime accent"</span>
</div>
</div>CSS
.nuda-mention {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px;
background: rgba(228,255,84,.04);
border: 1px solid rgba(228,255,84,.2);
border-left: 3px solid #e4ff54;
border-radius: 10px;
width: 100%;
max-width: 280px;
}
.nuda-mention__at {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
background: #e4ff54;
color: #09090b;
font-size: 13px;
font-weight: 900;
flex-shrink: 0;
animation: _mentionPop .55s cubic-bezier(.34,1.56,.64,1);
}
.nuda-mention__body {
flex: 1;
font-size: 12px;
color: #a0a0a8;
}
.nuda-mention__body strong {
color: #fafafa;
}
.nuda-mention__body em {
color: #62b6ff;
font-style: normal;
}
.nuda-mention__body span {
display: block;
color: #63636e;
font-size: 11px;
margin-top: 4px;
padding-left: 8px;
border-left: 2px solid rgba(255,255,255,.1);
font-style: italic;
}
@keyframes _mentionPop {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-mention__at {
animation: none;
}
}
How to use Mention Notification
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.