Holographic Button
A copy-paste buttons component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
ButtonsHTMLCSSany framework
Copy into your project
HTML
<button class="nuda-holo">
<span>Activate</span>
</button>CSS
/* Conic-gradient halo around the button. Works thanks to @property
animating a custom angle. Falls back to a static halo where unsupported. */
@property --a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
.nuda-holo {
position: relative;
padding: 11px 24px;
background: #0c0c10;
color: #fafafa;
border: 0;
border-radius: 10px;
cursor: pointer;
overflow: hidden;
isolation: isolate;
}
.nuda-holo::before {
content: "";
position: absolute;
inset: -2px;
background: conic-gradient(
from var(--a, 0deg),
#ff6dd4, #9d6dff, #62b6ff, #6ee7b7, #e4ff54, #ffb45e, #ff6dd4
);
border-radius: 12px;
z-index: -1;
animation: nuda-holo-spin 4s linear infinite;
}
.nuda-holo::after {
content: "";
position: absolute;
inset: 1px;
background: #0c0c10;
border-radius: 9px;
z-index: -1;
}
@keyframes nuda-holo-spin { to { --a: 360deg; } }How to use Holographic Button
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.