Skip to content

Glow Trace

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

Borders & OutlinesHTMLCSSany framework
Glow Trace

Copy into your project

HTML
<div class="nuda-gtb-border">
  <svg class="nuda-gtb-border__svg" viewBox="0 0 200 80" fill="none" preserveAspectRatio="none" aria-hidden="true">
    <rect class="nuda-gtb-border__base" x="2" y="2" width="196" height="76" rx="10"
          stroke="rgba(228,255,84,.18)" stroke-width="1.5" />
    <rect class="nuda-gtb-border__trace" x="2" y="2" width="196" height="76" rx="10"
          stroke="#e4ff54" stroke-width="2.5" pathLength="100" />
  </svg>
  <span class="nuda-gtb-border__label">Glow Trace</span>
</div>
CSS
.nuda-gtb-border {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  border-radius: 10px;
  padding: 22px 36px;
  min-width: 160px;
}

.nuda-gtb-border__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(228,255,84,.8));
}

.nuda-gtb-border__trace {
  stroke-dasharray: 18 82;
  stroke-linecap: round;
  animation: _nuda-gtbTrace 3s linear infinite;
}

.nuda-gtb-border__label {
  color: #fafafa;
  font-size: .85rem;
  font-weight: 500;
  position: relative;
}

@keyframes _nuda-gtbTrace {
  to {
    stroke-dashoffset: -100;
  }
}

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

How to use Glow Trace

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