Skip to content

Neon Frame

A copy-paste borders & outlines component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Borders & OutlinesHTMLCSSany framework
Neon Frame

Copy into your project

HTML
<div class="nuda-nfb-border">
  <span class="nuda-nfb-border__label">Neon Frame</span>
</div>
CSS
.nuda-nfb-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: 1.5px solid #e4ff54;
  border-radius: 12px;
  padding: 18px 34px;
  animation: _nuda-nfbBreathe 2.4s ease-in-out infinite alternate;
}

.nuda-nfb-border__label {
  color: #e4ff54;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(228,255,84,.6);
}

@keyframes _nuda-nfbBreathe {
  from {
    box-shadow: 0 0 6px rgba(228,255,84,.25),0 0 14px rgba(228,255,84,.12),inset 0 0 6px rgba(228,255,84,.15);
  }
  to {
    box-shadow: 0 0 16px rgba(228,255,84,.6),0 0 38px rgba(228,255,84,.3),inset 0 0 12px rgba(228,255,84,.3);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-nfb-border {
    animation: none;
  }
}

How to use Neon Frame

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More borders & outlines components

← Browse all NudaUI components