Glas mit Leuchtkante
Glas mit Leuchtkante: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-034 {
position: relative;
font: 600 14px/1 system-ui,sans-serif;
color: #fff;
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.15);
border-radius: 999px;
padding: 12px 26px;
cursor: pointer;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
box-shadow: 0 0 0 0 rgba(56,189,248,0);
transition: box-shadow .25s,border-color .25s,background .25s
}
.btn-034:hover {
border-color: rgba(56,189,248,.7);
box-shadow: 0 0 18px rgba(56,189,248,.35);
background: rgba(56,189,248,.1)
}
.btn-034:focus-visible {
outline: 2px solid #38bdf8;
outline-offset: 3px
}
.btn-034:active {
box-shadow: 0 0 8px rgba(56,189,248,.3)
}
HTML
<div style="background:#111827;padding:28px"><button class="btn-034">Launch</button></div>Prompt
Eine Glas-Pille auf dunklem #111827: 6% weiße Füllung, 8px Backdrop-Blur, 1px Rahmen in 15% Weiß, weißer Text 14px semibold, 12px mal 26px Padding. Beim Hover wird der Rahmen himmelblau #38bdf8 bei 70%, ein 18px himmelblaues Leuchten erscheint und die Füllung tönt sich 10% himmelblau. Active schrumpft das Leuchten auf 8px. Fokus-Outline 2px Himmelblau.