# Luz em contorno (B 074)

Categoria: Botões  
Tags: shine, sheen, outline, border-sweep  
Página: https://designforai.dev/pt/snippet/btn-074

## Prompt

Um botão outline violeta (borda de 2px #7c3aed, texto violeta de 14px semibold, preenchimento branco, raio de 8px, padding de 12px por 26px). No hover uma faixa violeta translúcida (25%) varre o interior da esquerda para a direita em 450ms. No active o preenchimento ganha o tom #f5f3ff. Outline de foco de 2px violeta.

## HTML

```html
<button class="btn-074">Sweep</button>
```

## CSS

```css
.btn-074 {
  position: relative;
  overflow: hidden;
  font: 600 14px/1 system-ui,sans-serif;
  color: #7c3aed;
  background: #fff;
  border: 2px solid #7c3aed;
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  z-index: 0
}
.btn-074::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg,transparent,rgba(124,58,237,.25),transparent);
  transition: left .45s;
  z-index: -1
}
.btn-074:hover::after {
  left: 120%
}
.btn-074:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 3px
}
.btn-074:active {
  background: #f5f3ff
}
```
