Component

Gradient Navbar

Vibrant gradient navigation with multi-color backgrounds. Perfect for creative brands and bold marketing pages.

  • Component
  • Tailwind
  • HTML
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/navigation/gradient-navbar/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Navigation/gradient-navbar
registry path: Tailwind/Components/Navigation/gradient-navbar

Source

Implementation

code.html
<nav class="bg-gradient-to-r from-indigo-600 via-purple-600 to-pink-600">
  <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
    <div class="flex items-center justify-between h-16">
      <!-- Logo -->
      <a href="#" class="flex items-center gap-2">
        <div class="w-9 h-9 bg-white/20 backdrop-blur-sm rounded-lg flex items-center justify-center">
          <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.19 6.35c-1.16-.9-2.86-1.1-4.27-.5-.65.28-1.2.7-1.65 1.22l-1.37 1.58c-.55.63-.84 1.4-.84 2.21v3.14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-3.14c0-.81-.29-1.58-.84-2.21l-1.37-1.58c-.45-.52-1-.94-1.65-1.22-.35-.15-.7-.24-1.07-.27"/>
          </svg>
        </div>
        <span class="text-white text-xl font-bold">Pulse</span>
      </a>

      <!-- Desktop Navigation -->
      <div class="hidden md:flex items-center gap-8">
        <a href="#" class="text-white/90 hover:text-white font-medium transition-colors">Home</a>
        <a href="#" class="text-white/80 hover:text-white transition-colors">Features</a>
        <a href="#" class="text-white/80 hover:text-white transition-colors">Pricing</a>
        <a href="#" class="text-white/80 hover:text-white transition-colors">Blog</a>
        <a href="#" class="text-white/80 hover:text-white transition-colors">Contact</a>
      </div>

      <!-- Actions -->
      <div class="hidden md:flex items-center gap-4">
        <a href="#" class="text-white/90 hover:text-white font-medium transition-colors">Sign In</a>
        <a href="#" class="px-5 py-2 bg-white text-indigo-600 font-semibold rounded-lg hover:bg-white/90 transition-colors shadow-lg">
          Get Started
        </a>
      </div>

      <!-- Mobile Menu Button -->
      <button class="md:hidden text-white p-2" aria-label="Menu">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
        </svg>
      </button>
    </div>
  </div>

  <!-- Mobile Menu -->
  <div class="md:hidden hidden bg-indigo-700" id="mobile-menu">
    <div class="px-4 py-4 space-y-3">
      <a href="#" class="block px-4 py-2 text-white/90 font-medium">Home</a>
      <a href="#" class="block px-4 py-2 text-white/80">Features</a>
      <a href="#" class="block px-4 py-2 text-white/80">Pricing</a>
      <a href="#" class="block px-4 py-2 text-white/80">Blog</a>
      <a href="#" class="block px-4 py-2 text-white/80">Contact</a>
      <div class="pt-4 flex flex-col gap-3">
        <a href="#" class="text-center py-2.5 text-white/90 font-medium border border-white/30 rounded-lg">Sign In</a>
        <a href="#" class="text-center py-2.5 bg-white text-indigo-600 font-semibold rounded-lg">Get Started</a>
      </div>
    </div>
  </div>
</nav>
54 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/navigation/gradient-navbar

Continue browsing

View all