# Inset fill diagonal duo (B 149)

Category: Buttons  
Tags: inset-fill, outline, rectangle, box-shadow, two-shadows  
Page: https://designforai.dev/snippet/btn-149

## Prompt

A blue outline button (transparent, 2px #1d4ed8 border, 4px radius, blue 14px semibold text, 12px by 24px padding) that fills from both sides at once on hover: two inset box-shadows, one with +110px and one with -110px horizontal offset, meeting in the middle while the text turns white, 300ms. Active darkens to #1e3a8a. Focus 2px blue outline.

## HTML

```html
<button class="btn-149">Compare</button>
```

## CSS

```css
.btn-149 {
  font: 600 14px/1 system-ui,sans-serif;
  color: #1d4ed8;
  background: transparent;
  border: 2px solid #1d4ed8;
  border-radius: 4px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #1d4ed8,inset 0 0 0 0 #1d4ed8;
  transition: box-shadow .3s,color .3s
}
.btn-149:hover {
  box-shadow: inset 110px 0 0 0 #1d4ed8,inset -110px 0 0 0 #1d4ed8;
  color: #fff
}
.btn-149:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 3px
}
.btn-149:active {
  box-shadow: inset 110px 0 0 0 #1e3a8a,inset -110px 0 0 0 #1e3a8a;
  border-color: #1e3a8a
}
```
