Components Sticky Navigation Sticky Navigation Component - Dark Mode Pastel

Sticky Navigation Component - Dark Mode Pastel

A sticky navigation bar designed for dark mode, featuring a responsive layout and pastel color accents. The navigation bar remains at the top of the viewport as the user scrolls, improving usability for content-heavy pages. It includes placeholders for a logo or site title and navigation links, styled with Tailwind CSS for a modern, clean look.

Preview

HTML Code

<nav class="dark:bg-gray-900 dark:text-gray-200 bg-gray-100 text-gray-800 shadow-md sticky top-0 z-50">
  <div class="container mx-auto px-4 py-3 flex justify-between items-center">
    <!-- Logo or Site Title -->
    <div class="text-lg font-bold">
      <a href="#" class="dark:text-pink-300 text-purple-600 hover:dark:text-pink-400 hover:text-purple-700">Your Logo</a>
    </div>
    <!-- Navigation Links -->
    <div class="hidden md:flex space-x-6">
      <a href="#" class="hover:dark:text-pink-400 hover:text-purple-700 transition duration-300 ease-in-out">Home</a>
      <a href="#" class="hover:dark:text-pink-400 hover:text-purple-700 transition duration-300 ease-in-out">About</a>
      <a href="#" class="hover:dark:text-pink-400 hover:text-purple-700 transition duration-300 ease-in-out">Services</a>
      <a href="#" class="hover:dark:text-pink-400 hover:text-purple-700 transition duration-300 ease-in-out">Contact</a>
    </div>
    <!-- Mobile Menu Button (Hamburger) -->
    <div class="md:hidden">
      <button class="focus:outline-none">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-4 6h4"></path>
        </svg>
      </button>
    </div>
  </div>
  <!-- Mobile Menu (Dropdown - hidden by default) -->
  <div class="md:hidden border-t dark:border-gray-700 border-gray-200">
    <a href="#" class="block py-2 px-4 text-sm hover:dark:bg-gray-700 hover:bg-gray-200">Home</a>
    <a href="#" class="block py-2 px-4 text-sm hover:dark:bg-gray-700 hover:bg-gray-200">About</a>
    <a href="#" class="block py-2 px-4 text-sm hover:dark:bg-gray-700 hover:bg-gray-200">Services</a>
    <a href="#" class="block py-2 px-4 text-sm hover:dark:bg-gray-700 hover:bg-gray-200">Contact</a>
  </div>
</nav>

Related Components

Sticky Navigation Component

A responsive sticky navigation bar that follows Material Design guidelines, featuring a dark mode.

Open

Sticky Navigation Component - Neumorphism

A responsive sticky navigation component with Neumorphism design, complementary color scheme, and dark theme support, suitable for a portfolio website. Uses Tailwind CSS with dark mode classes and includes subtle shadows for the Neumorphism effect.

Open

Retro E-commerce Sticky Navigation

A retro/vintage sticky navigation component for e-commerce sites with vibrant colors, complex elements, responsiveness, and dark mode support using Tailwind CSS.

Open