Menu
Design System / Navigation

Navigation

Navbar and dropdown patterns.

Navigation

The app chrome uses a glass .ziom-nav bar (rendered by layouts/_navigation) with responsive mobile behavior, dropdowns, and a theme toggle. Below are the building-block pieces.

Theme Toggle

Wired to the theme Stimulus controller, which persists the preference to localStorage and falls back to the OS setting. The toggle in this page's header uses exactly this markup — try it.

HTML
<div class="ziom-theme-options">
  <button class="ziom-theme-btn active" data-theme="light" title="Light"><i class="ph ph-sun"></i></button>
  <button class="ziom-theme-btn" data-theme="dark" title="Dark"><i class="ph ph-moon"></i></button>
  <button class="ziom-theme-btn" data-theme="system" title="System"><i class="ph ph-desktop"></i></button>
</div>