Navbar
The global navigation bar that sits fixed at the top of every TanStack surface. It's a layout organism — brand, primary mega-menu navigation, and a utility cluster — and adapts from a full desktop bar to a compact mobile menu. Source: src/components/Navbar.tsx.
Anatomy
A static replica built from the production classes and the shared --navbar-height token. Toggle a device size, or leave it on Auto to watch it reflow with the screen — driven by container queries, so it mirrors the real navbar's 900px / 1120px breakpoints at any width.
Mega menu item
The row used inside the primary-nav mega menus — a bordered icon square, a Bricolage-bold title (heading-5), and a muted body-xs description. Rest / hover / press apply a mode-adaptive overlay. Source: src/components/MegaMenuItem.tsx.
Regions
Three regions laid out with flex justify-between: brand on the left, primary navigation centered, utilities on the right.
Logo mark and wordmark, linking home. Right-clicking opens the brand context menu (logo assets, Brand Guide).
Libraries, Learn, Community, Tools, Merch, and Support — each a hover/focus mega-menu. Collapses into the mobile menu below 900px.
Social links, theme toggle, cart, search, the AI dock, and auth controls — plus the hamburger trigger on mobile.
Layout & spacing
The tokens and utilities that give the bar its rhythm. Height is driven by a CSS variable so sticky offsets across the site stay in sync.
--navbar-height: 58pxpx-3 py-2 · min-[900px]:px-5gap-2 · min-[1120px]:gap-4gap-1gap-2 · sm:gap-2.5px-2 py-2 · min-[1120px]:px-3text-xs · min-[1120px]:text-[13px]bg-white/90 dark:bg-black/90border-b border-gray-500/20Responsive behavior
Two breakpoints reshape the bar as space tightens.
Full primary navigation with mega-menu dropdowns; the hamburger is hidden.
Social links join the utility cluster and region gaps widen for extra breathing room.
Primary nav collapses to a hamburger that opens a full-width collapsible menu below the bar.
Source
This organism lives in the app, not the copy-paste registry — it's wired to routing, auth, and cart state.
src/components/Navbar.tsxMounted once in __root.tsx as <Navbar>{children}</Navbar>. Menu contents are defined in the NAV_GROUPS config at the top of the file.