Anillo con halo
Anillo con halo: botón en CSS. Copia las reglas, o el prompt que reproduce el resultado.
CSS
@property --a103 {
syntax: "<angle>";
inherits: false;
initial-value: 0deg
}
.btn-103 {
position: relative;
font: 600 15px/1 system-ui,sans-serif;
color: #fff;
background: #111;
border: 0;
border-radius: 999px;
padding: 14px 32px;
cursor: pointer;
isolation: isolate
}
.btn-103::before,.btn-103::after {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
background: conic-gradient(from var(--a103),#34d399,#3b82f6,#d946ef,#34d399);
z-index: -2;
animation: spin103 4s linear infinite
}
.btn-103::after {
filter: blur(12px);
opacity: .6;
z-index: -3
}
.btn-103 span {
position: absolute;
inset: 0;
border-radius: inherit;
background: #111;
z-index: -1
}
.btn-103:hover::after {
opacity: 1
}
.btn-103:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 5px
}
.btn-103:active {
transform: translateY(1px)
}
@keyframes spin103 {
to {
--a103: 360deg
}
}
@media (prefers-reduced-motion: reduce) {
.btn-103, .btn-103 * { animation: none; transition: none; }
}
HTML
<button class="btn-103"><span></span>Generate</button>Prompt
Un botón píldora negro con un borde cónico giratorio (#34d399, #3b82f6, #d946ef) más una segunda copia del mismo degradado desenfocada 12px por detrás como halo suave al 60% de opacidad, que sube al 100% en hover. Borde de 2px, rotación 4s linear infinite mediante @property. Texto blanco de 15px semibold, padding de 14px por 32px. Un span interior vacío enmascara el interior. En active baja 1px, foco con outline azul de 2px y offset de 5px.