# Inset fill centre (B 148)

Category: Buttons  
Tags: inset-fill, outline, rounded, box-shadow, spread-from-centre  
Page: https://designforai.dev/snippet/btn-148

## Prompt

A green outline button on white: 2px #047857 border, 10px radius, green 15px semibold text, 12px by 26px padding. On hover the fill grows inward from all four edges toward the centre (inset box-shadow spread 0 to 30px) and the text turns white, 300ms. Active uses the darker #065f46. Focus 2px green outline offset 3px.

## HTML

```html
<button class="btn-148">Apply</button>
```

## CSS

```css
.btn-148 {
  font: 600 15px/1 system-ui,sans-serif;
  color: #047857;
  background: #fff;
  border: 2px solid #047857;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #047857;
  transition: box-shadow .3s,color .2s
}
.btn-148:hover {
  box-shadow: inset 0 0 0 30px #047857;
  color: #fff
}
.btn-148:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 3px
}
.btn-148:active {
  box-shadow: inset 0 0 0 30px #065f46;
  border-color: #065f46
}
```
