Glas Segment-Tab

Glas Segment-Tab: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.

glassmorphismpillsmalltab-like

CSS
.btn-036 {
  font: 500 13px/1 system-ui,sans-serif;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .15s,color .15s
}
.btn-036:hover {
  background: rgba(255,255,255,.2);
  color: #fff
}
.btn-036:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px
}
.btn-036:active {
  background: rgba(255,255,255,.3)
}
HTML
<div style="background:linear-gradient(135deg,#1e3a8a,#7e22ce);padding:28px"><button class="btn-036">Monthly</button></div>
Prompt

Eine kleine Glas-Pille im Tab-Stil: 10% weiße Füllung, 6px Backdrop-Blur, 1px Rahmen in 20% Weiß, Text in 85% Weiß bei 13px medium, 8px mal 16px Padding, voll abgerundet. Hover 20% Füllung mit reinweißem Text; active 30%. Fokus-Outline 2px Weiß.