Thick Underline Nav
A copy-paste navigation component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
NavigationHTMLCSSany framework
Copy into your project
HTML
<nav class="nuda-navx-ul-thick" aria-label="Main">
<a class="nuda-navx-ul-thick__link nuda-navx-ul-thick__link--active" href="#">Work</a>
<a class="nuda-navx-ul-thick__link" href="#">Studio</a>
<a class="nuda-navx-ul-thick__link" href="#">Journal</a>
<a class="nuda-navx-ul-thick__link" href="#">Contact</a>
</nav>CSS
.nuda-navx-ul-thick {
display: flex;
gap: 1.75rem;
border-bottom: 1px solid rgba(255,255,255,.08);
padding-bottom: 0;
}
.nuda-navx-ul-thick__link {
color: #777;
text-decoration: none;
font-size: .85rem;
font-weight: 600;
letter-spacing: .04em;
text-transform: uppercase;
padding: .6rem 0 .5rem;
position: relative;
transition: color .25s;
}
.nuda-navx-ul-thick__link::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 3px;
background: #e4ff54;
border-radius: 3px 3px 0 0;
transform: scaleX(0);
transform-origin: center;
transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nuda-navx-ul-thick__link:hover {
color: #fafafa;
}
.nuda-navx-ul-thick__link:hover::after {
transform: scaleX(.5);
}
.nuda-navx-ul-thick__link--active {
color: #fafafa;
}
.nuda-navx-ul-thick__link--active::after {
transform: scaleX(1);
}
@media (prefers-reduced-motion:reduce) {
.nuda-navx-ul-thick__link,.nuda-navx-ul-thick__link::after {
transition: none;
}
}
How to use Thick Underline Nav
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.