Biometric Prompt
A copy-paste login & auth component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Login & AuthHTMLCSSany framework
Touch sensor to sign in
Copy into your project
HTML
<div class="nuda-biometric">
<div class="nuda-biometric__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12c0-3.5 3.5-7 7-7s7 3.5 7 7" />
<path d="M5 12v3" />
<path d="M9 8c1-1 2-1 3-1s2 0 3 1" />
<path d="M8 14v2" />
<path d="M12 9v6" />
<path d="M16 14v2" />
<path d="M9 19c1 .5 2 1 3 1s2-.5 3-1" />
</svg>
<span class="nuda-biometric__ring"></span>
</div>
<div class="nuda-biometric__label">Touch sensor to sign in</div>
</div>CSS
.nuda-biometric {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 24px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 16px;
width: 100%;
max-width: 240px;
}
.nuda-biometric__icon {
position: relative;
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(228,255,84,.06);
border-radius: 50%;
color: #e4ff54;
}
.nuda-biometric__icon svg {
width: 32px;
height: 32px;
animation: _bioFlick 2.4s ease-in-out infinite;
}
.nuda-biometric__ring {
position: absolute;
inset: -4px;
border-radius: 50%;
border: 2px solid rgba(228,255,84,.4);
animation: _bioRing 2.4s ease-out infinite;
}
.nuda-biometric__label {
font-size: 12px;
color: #a0a0a8;
font-weight: 500;
text-align: center;
}
@keyframes _bioFlick {
0%,100% {
filter: drop-shadow(0 0 0 transparent);
}
50% {
filter: drop-shadow(0 0 8px #e4ff54);
}
}
@keyframes _bioRing {
0% {
transform: scale(1);
opacity: .7;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-biometric__icon svg,.nuda-biometric__ring {
animation: none;
}
}
How to use Biometric Prompt
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.