Center bloom

Center bloom: a CSS button. Copy the rules, or the prompt that rebuilds it.

hover-fillgrow-centerpillscale

CSS
.btn-059 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 system-ui,sans-serif;
  color: #7e22ce;
  background: transparent;
  border: 2px solid #7e22ce;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  z-index: 0;
  transition: color .3s
}
.btn-059::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #7e22ce;
  border-radius: inherit;
  transform: scale(0);
  transition: transform .3s ease;
  z-index: -1
}
.btn-059:hover {
  color: #fff
}
.btn-059:hover::before {
  transform: scale(1.05)
}
.btn-059:focus-visible {
  outline: 2px solid #7e22ce;
  outline-offset: 3px
}
.btn-059:active::before {
  background: #6b21a8
}
HTML
<button class="btn-059">Bloom</button>
Prompt

A purple outline pill (2px #7e22ce border, purple 14px semibold text, 12px by 26px padding, fully rounded). On hover a purple fill grows from the centre outwards (scale 0 to 1.05 in 300ms) and the text turns white. Active #6b21a8. Focus outline 2px purple.