# Ghost with border-on-hover (B 014)

Category: Buttons  
Tags: ghost, outline, rounded, border-appears  
Page: https://designforai.dev/snippet/btn-014

## Prompt

A ghost button that only reveals its border on hover: text #374151 at 14px medium, transparent 1px border reserving space, 8px radius, 10px by 16px padding. Hover shows a #d1d5db border and white background. Active grey #f3f4f6 with #9ca3af border. Focus outline 2px #374151.

## HTML

```html
<button class="btn-014">Settings</button>
```

## CSS

```css
.btn-014 {
  font: 500 14px/1 system-ui,sans-serif;
  color: #374151;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color .15s,background .15s
}
.btn-014:hover {
  border-color: #d1d5db;
  background: #fff
}
.btn-014:focus-visible {
  outline: 2px solid #374151;
  outline-offset: 2px
}
.btn-014:active {
  background: #f3f4f6;
  border-color: #9ca3af
}
```
