Skip to content

Centered logo navigation in Tailwind CSS

The house name in the middle, links split on each side, restaurant or designer-shop style.

Here is an excerpt of this component's code in Tailwind CSS. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in Tailwind CSS

index.html
<!doctype html>
<html lang="fr">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Navigation à logo centré</title>
    <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.3"></script>
    <style type="text/tailwindcss">
      @custom-variant dark {
        @media (prefers-color-scheme: dark) {
          &:where(:root:not([data-theme="light"]), :root:not([data-theme="light"]) *) {
            @slot;

Free component: copy it freely, including for commercial projects.

Navigation bars components in Tailwind CSS
  • A navigation that sits at the bottom of the screen, under the thumb, on phones, and becomes a horizontal bar at the top on desktop.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Logo on the left, links in the middle, call to action on the right, collapsible menu on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A strip of practical details (phone, opening hours) above the main navigation.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component