Avatar Initials
A copy-paste avatars component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
AvatarsHTMLCSSany framework
SL
Copy into your project
HTML
<div class="nuda-initials" style="background:linear-gradient(135deg,#62b6ff,#9d6dff)">
<span>SL</span>
</div>CSS
.nuda-initials {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
color: #fafafa;
font-weight: 700;
letter-spacing: 0.04em;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
transition: transform 0.25s;
}
.nuda-initials:hover {
transform: rotate(-8deg) scale(1.08);
}How to use Avatar Initials
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.