Pill shrink-on-press
Pill shrink-on-press: a CSS button. Copy the rules, or the prompt that rebuilds it.
CSS
.btn-021 {
font: 600 14px/1 system-ui,sans-serif;
color: #fff;
background: #16a34a;
border: 0;
border-radius: 999px;
padding: 12px 26px;
cursor: pointer;
transition: transform .1s,background .15s
}
.btn-021:hover {
background: #15803d
}
.btn-021:focus-visible {
outline: 2px solid #16a34a;
outline-offset: 3px
}
.btn-021:active {
transform: scale(.94);
background: #166534
}
HTML
<button class="btn-021">Send</button>Prompt
A green pill button #16a34a, white 14px semibold text, 12px by 26px padding, fully rounded. Hover #15803d; on press it scales to 94% over 100ms and darkens to #166534. Focus outline 2px green offset 3px.