# Neon Border Glow

> A neon-tube box that glows both inward and outward from its border, with matching glowing text.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: neon, tube, inset, dark, sign, cyberpunk
- Live preview: https://copy-css.com/snippets/neon-border-glow
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="neon-box">ONLINE</div>
```

## CSS

```css
.neon-box {
  --neon: #e879f9;
  padding: 18px 30px;
  border: 2px solid #f5d0fe;
  border-radius: 14px;
  color: #fdf4ff;
  font: 700 18px/1 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-shadow: 0 0 8px var(--neon);
  box-shadow:
    0 0 6px var(--neon),
    0 0 18px #d946ef,
    0 0 42px #a21caf,
    inset 0 0 6px var(--neon),
    inset 0 0 18px #d946ef80;
}
```

## Notes

- This CSS Neon Border Glow is 16 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses box shadows, text shadows and custom properties.
- Customize with: `--neon`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
