FAB klassisch

FAB klassisch: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.

fabcircleiconelevatedfloating

CSS
.btn-166 {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #6366f1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px -4px #6366f1aa,0 2px 4px #0002;
  transition: box-shadow .2s,transform .2s,background .2s
}
.btn-166:hover {
  background: #4f46e5;
  box-shadow: 0 10px 24px -6px #6366f1cc,0 3px 6px #0003;
  transform: translateY(-2px)
}
.btn-166:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 3px
}
.btn-166:active {
  transform: translateY(0) scale(.96);
  box-shadow: 0 3px 8px -2px #6366f1aa
}
HTML
<button class="btn-166" aria-label="Create"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>
Prompt

Ein klassischer 56px runder Floating Action Button in Indigo #6366f1 mit weißem 24px Inline-Plus-Icon und geschichtetem indigofarbenem Schatten (0 6px 16px plus ein kleiner dunkler 2px). Hover dunkelt auf #4f46e5, hebt 2px an und vertieft den Schatten; Active skaliert auf 0.96 mit engem Schatten. Focus: 3px indigofarbene Outline mit 3px Offset.