Unsaved Changes Dot
A copy-paste indicators component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
IndicatorsHTMLCSSany framework
Unsaved changes
Copy into your project
HTML
<div class="nuda-in2-unsaved" role="status" aria-live="polite">
<span class="nuda-in2-unsaved__badge" aria-hidden="true">
<span class="nuda-in2-unsaved__ring"></span>
<span class="nuda-in2-unsaved__dot"></span>
</span>
<span class="nuda-in2-unsaved__text">Unsaved changes</span>
</div>CSS
.nuda-in2-unsaved {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 12px;
color: #cfcfcf;
}
.nuda-in2-unsaved__badge {
position: relative;
width: 9px;
height: 9px;
flex: 0 0 auto;
}
.nuda-in2-unsaved__ring {
position: absolute;
inset: 0;
border-radius: 50%;
background: #facc15;
animation: _nuda-in2unsaved-ring 1.8s ease-out infinite;
}
.nuda-in2-unsaved__dot {
position: absolute;
inset: 0;
border-radius: 50%;
background: #facc15;
}
@keyframes _nuda-in2unsaved-ring {
0% {
transform: scale(1);
opacity: .6;
}
100% {
transform: scale(2.4);
opacity: 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-in2-unsaved__ring {
animation: none !important;
opacity: 0;
}
}
How to use Unsaved Changes Dot
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.