# Reflexo em fundo escuro (B 071)

Categoria: Botões  
Tags: shine, sheen, solid, dark, sweep  
Página: https://designforai.dev/pt/snippet/btn-071

## Prompt

Um botão escuro #111827 com texto branco de 14px semibold, raio de 8px, padding de 12px por 26px. No hover uma faixa de luz diagonal inclinada (transparente para branco a 35% para transparente) varre da esquerda para a direita em 500ms, como um reflexo em vidro. Active #000. Outline de foco de 2px escuro.

## HTML

```html
<button class="btn-071">Shine</button>
```

## CSS

```css
.btn-071 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 system-ui,sans-serif;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background .2s
}
.btn-071::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);
  transform: skewX(-20deg);
  transition: left .5s ease
}
.btn-071:hover::after {
  left: 125%
}
.btn-071:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px
}
.btn-071:active {
  background: #000
}
```
