Skip to content
v0.9.1
Layout

App shell

The frame of an app: a black sidebar, a top bar, the content, a footer, and a tab bar on phones. On screens under 992px the sidebar slides in from a menu button.

Open the dashboard example on its own. Make the window narrow to see the phone layout.

Structure

<div class="app">
  <aside class="sidebar" aria-label="Main">
    <a class="sidebar-brand" href="/">Momo</a>
    <p class="sidebar-title">Navigation</p>
    <ul class="sidebar-nav">
      <li><a class="sidebar-link" href="/" aria-current="page"><i class="mi mi-layout-dashboard"></i> Dashboard <span class="sidebar-count">15</span></a></li>
      <li><a class="sidebar-link" href="/files"><i class="mi mi-file"></i> Files <span class="sidebar-count bg-green">14</span></a></li>
    </ul>
    <div class="sidebar-foot">…</div>
  </aside>

  <div class="app-main">
    <header class="topbar">
      <button class="btn btn-icon btn-ghost app-menu-btn" data-momo-sidebar aria-label="Open menu"><i class="mi mi-menu"></i></button>
      <h1 class="topbar-title">Dashboard</h1>
      <div class="topbar-actions">…</div>
    </header>
    <main class="app-content">…</main>
    <footer class="app-footer">…</footer>
  </div>

  <nav class="tabbar" aria-label="Quick links">…</nav>
</div>

Sidebar

Top bar

<button class="btn btn-icon" type="button" aria-label="Notifications, new"><i class="mi mi-bell"></i><span class="dot"></span></button>
<button class="btn btn-icon" type="button" aria-label="Messages, 3 new"><i class="mi mi-message-square"></i><span class="dot">3</span></button>
<button class="btn btn-icon btn-ghost" type="button" aria-label="Alerts, 5 new"><i class="mi mi-bell"></i><span class="dot bg-yellow">5</span></button>

Tab bar

Under 768px wide, .tabbar pins icon links to the bottom of the screen; the page gets room for it, and toasts sit above it. .tabbar-ink makes it black. A .tabbar-fab in the middle is the big round action: brand color on a light bar, the light brand shade on a black one (so it never disappears). Pick your own with --tabbar-fab-bg and --tabbar-fab-color on the tab bar, for example style="--tabbar-fab-bg: var(--momo-yellow)". With a middle button, put the same number of tabs on each side (two and two) so it sits in the centre.

Variables

VariableDefault
--sidebar-width16.5rem
--sidebar-bg / --sidebar-color / --sidebar-muted / --sidebar-hover#161616 / off-white / gray / #262626
--topbar-height4.5rem
--momo-tabbar-space4rem when a tab bar shows (toasts use it)

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close