# Preenchimento inset vertical (B 147)

Categoria: Botões  
Tags: inset-fill, outline, pill, box-shadow, bottom-up  
Página: https://designforai.dev/pt/snippet/btn-147

## Prompt

Uma pílula outline rosé: fundo transparente, borda de 2px #be123c, texto rosé de 14px semibold, padding de 12px por 26px. No hover um preenchimento rosé sobe de baixo (box-shadow inset com offset vertical de -48px) e o texto fica branco, 250ms. No active usa o mais escuro #9f1239. Foco com outline rosé de 2px e offset de 3px.

## HTML

```html
<button class="btn-147">Subscribe</button>
```

## CSS

```css
.btn-147 {
  font: 600 14px/1 system-ui,sans-serif;
  color: #be123c;
  background: transparent;
  border: 2px solid #be123c;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #be123c;
  transition: box-shadow .25s,color .25s
}
.btn-147:hover {
  box-shadow: inset 0 -48px 0 0 #be123c;
  color: #fff
}
.btn-147:focus-visible {
  outline: 2px solid #be123c;
  outline-offset: 3px
}
.btn-147:active {
  box-shadow: inset 0 -48px 0 0 #9f1239;
  border-color: #9f1239
}
```
