Skip to content

Compact Profile Pill

A copy-paste profile headers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Profile HeadersHTMLCSSany framework
NV
Nora Vance@nvance

Copy into your project

HTML
<div class="nuda-compact-pill">
  <div class="nuda-compact-pill__avatar">NV</div>
  <div class="nuda-compact-pill__text">
    <span class="nuda-compact-pill__name">Nora Vance</span>
    <span class="nuda-compact-pill__handle">@nvance</span>
  </div>
</div>
CSS
/* Compact Profile Pill
   Inline avatar + name pill, great for mentions or chips.
   Customize: --avatar gradient, pill bg */

.nuda-compact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fafafa;
  font-family: system-ui, sans-serif;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.nuda-compact-pill:hover {
  border-color: rgba(228, 255, 84, 0.3);
  background: rgba(228, 255, 84, 0.04);
}

.nuda-compact-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #09090b;
  background: linear-gradient(135deg, #ff6dd4, #9d6dff);
  flex-shrink: 0;
}

.nuda-compact-pill__text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}

.nuda-compact-pill__name   { font-size: 0.82rem; font-weight: 600; }
.nuda-compact-pill__handle { font-size: 0.72rem; color: #63636e; }

@media (prefers-reduced-motion: reduce) {
  .nuda-compact-pill { transition: none; }
}

How to use Compact Profile Pill

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.

More profile headers components

← Browse all NudaUI components