Skip to content

Minimal Topbar

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

NavigationHTMLCSSany framework

Copy into your project

HTML
<header class="nuda-navx-topbar">
  <div class="nuda-navx-topbar__left">
    <span class="nuda-navx-topbar__wordmark">nuda</span>
  </div>
  <nav class="nuda-navx-topbar__links" aria-label="Primary">
    <a class="nuda-navx-topbar__link nuda-navx-topbar__link--active" href="#">Products</a>
    <a class="nuda-navx-topbar__link" href="#">Docs</a>
    <a class="nuda-navx-topbar__link" href="#">Blog</a>
  </nav>
  <div class="nuda-navx-topbar__right">
    <a class="nuda-navx-topbar__cta" href="#">Get started</a>
  </div>
</header>
CSS
.nuda-navx-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .6rem 1rem;
  width: 100%;
  box-sizing: border-box;
  animation: _nuda-navxtopbar-in .4s ease-out;
}

.nuda-navx-topbar__left {
  flex: 1;
}

.nuda-navx-topbar__wordmark {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fafafa;
}

.nuda-navx-topbar__links {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 2px;
}

.nuda-navx-topbar__link {
  color: #777;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .7rem;
  border-radius: 6px;
  transition: color .2s,background .2s;
}

.nuda-navx-topbar__link:hover {
  color: #cfcfcf;
  background: rgba(255,255,255,.07);
}

.nuda-navx-topbar__link--active {
  color: #fafafa;
  background: rgba(255,255,255,.1);
}

.nuda-navx-topbar__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nuda-navx-topbar__cta {
  display: inline-block;
  background: #e4ff54;
  color: #0a0a0a;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .2s;
}

.nuda-navx-topbar__cta:hover {
  opacity: .85;
}

@keyframes _nuda-navxtopbar-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-navx-topbar {
    animation: none;
  }
  .nuda-navx-topbar__link,.nuda-navx-topbar__cta {
    transition: none;
  }
}

How to use Minimal Topbar

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 navigation components

← Browse all NudaUI components