Presence Ring
A copy-paste avatars component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AvatarsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-presence">
<svg class="nuda-presence__ring" viewBox="0 0 40 40">
<circle cx="20" cy="20" r="18" fill="none"
stroke="rgba(255,255,255,.08)" stroke-width="2" />
<circle cx="20" cy="20" r="18" fill="none" stroke="#6ee7b7" stroke-width="2"
stroke-dasharray="113" stroke-dashoffset="28"
stroke-linecap="round" transform="rotate(-90 20 20)" />
</svg>
<span class="nuda-presence__avatar"></span>
</div>CSS
.nuda-presence {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.nuda-presence__ring {
position: absolute;
width: 100%;
height: 100%;
animation: _presPulse 3s ease-in-out infinite;
}
.nuda-presence__avatar {
width: 30px;
height: 30px;
border-radius: 50%;
background: linear-gradient(135deg,#62b6ff,#9d6dff);
}
@keyframes _presPulse {
0%,100% {
opacity: 1;
}
50% {
opacity: .6;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-presence__ring {
animation: none;
}
}
How to use Presence Ring
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.