Anillo de progreso
Anillo de progreso: botón en CSS. Copia las reglas, o el prompt que reproduce el resultado.
CSS
.btn-183 {
--p: 0;
width: 64px;
height: 64px;
display: inline-grid;
place-items: center;
font: 700 13px/1 system-ui,sans-serif;
color: #1e3a8a;
background: conic-gradient(#3b82f6 calc(var(--p)*1%),#dbeafe 0);
border: 0;
border-radius: 50%;
cursor: pointer;
position: relative;
isolation: isolate;
transition: transform .2s
}
.btn-183::before {
content: "";
position: absolute;
inset: 6px;
border-radius: 50%;
background: #fff;
z-index: -1
}
.btn-183:hover {
transform: scale(1.05)
}
.btn-183:focus-visible {
outline: 2px solid #3b82f6;
outline-offset: 3px
}
.btn-183:active {
transform: scale(.97)
}
HTML
<button class="btn-183" style="--p:72" aria-label="72 percent done">72%</button>Prompt
Un botón de progreso redondo de 64px: un anillo con degradado cónico en azul #3b82f6 que cubre un porcentaje fijado con la custom property --p (sin unidad, p. ej. 72) y el resto en #dbeafe pálido, un disco interior blanco con inset 6px, y el porcentaje en 13px bold #1e3a8a en el centro. Hover escala 1.05, active 0.97. Focus con outline azul de 2px.