Squircle Avatar
A copy-paste avatars component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AvatarsHTMLCSSany framework
K
Copy into your project
HTML
<div class="nuda-av2-squircle" style="background:linear-gradient(135deg,#7c9eff,#62e0ff)" aria-label="Kai">K</div>CSS
.nuda-av2-squircle {
width: 56px;
height: 56px;
border-radius: 30%;
display: flex;
align-items: center;
justify-content: center;
color: #0a0a0a;
font-weight: 800;
font-size: 18px;
box-shadow: 0 0 0 0 rgba(228,255,84,.35);
animation: _nuda-av2squirclepulse 2.4s ease-in-out infinite;
transition: transform .3s cubic-bezier(.34,1.56,.64,1);
will-change: transform,box-shadow;
}
.nuda-av2-squircle:hover {
transform: scale(1.06) rotate(-4deg);
}
@keyframes _nuda-av2squirclepulse {
0%,100% {
box-shadow: 0 0 0 0 rgba(228,255,84,.35);
}
50% {
box-shadow: 0 0 0 8px rgba(228,255,84,0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-av2-squircle {
animation: none;
transition: none;
box-shadow: 0 0 0 3px rgba(228,255,84,.25);
}
}
How to use Squircle Avatar
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.