# Neon Button

> An outlined neon button that glows softly and lights up fully on hover.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: neon, glow, outline, dark, cyberpunk, hover
- Live preview: https://copy-css.com/snippets/neon-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-neon">Play now</button>
```

## CSS

```css
.btn-neon {
  padding: 14px 34px;
  border: 2px solid #22d3ee;
  border-radius: 10px;
  background: transparent;
  color: #a5f3fc;
  font: 700 15px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.45),
    inset 0 0 12px rgba(34, 211, 238, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-neon:hover {
  background: #22d3ee;
  color: #083344;
  text-shadow: none;
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.9),
    0 0 64px rgba(34, 211, 238, 0.5);
}

.btn-neon:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 4px;
}
```

## Notes

- This CSS Neon Button is 30 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses transitions, box shadows, text shadows and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
