Skip to content
v0.9.1
Guides

Stacking order

What sits on top of what: sticky bars under drawers, drawers under dialogs, tooltips over everything. Momo uses a small, fixed ladder so the parts never fight, and most pop-ups do not need it at all.

Pop-ups are always on top

Dialogs, drawers, dropdown menus, the dropdown list, calendars, toasts and the command palette open in the browser's top layer. That layer is above the whole page whatever the page's own stacking says, so a menu is never cut off by a card with overflow: hidden and never ends up under a sticky header. You do not set anything for them.

The ladder for the page itself

LevelWhat uses it
1 to 10Small things inside a component: a sticky table header, a badge on a corner, a carousel arrow
20Sticky bars: .sticky-top, .sticky-bottom, the app's top bar
25The back-to-top button
30Fixed bars: .fixed-top, .fixed-bottom, a sticky or fixed navbar
40The phone tab bar, the scroll progress line
45The cookie banner
55 and 60The app sidebar as a drawer on phones, with its backdrop; the shortcuts hint
100The skip link when it has the focus
1000What follows the pointer: a dragged row or card, the menu of a table cell
2000Tooltips

For your own parts

The z-* utilities cover the low end, which is where your own content belongs. Stay under 20 and you stay under every bar; go above only when you mean to cover one.

z-0
z-10
z-20
<div class="relative" style="height: 7rem; max-width: 18rem" id="st-demo">
  <div class="box p-3 bg-yellow absolute z-0" style="inset: 0 4rem 2rem 0">z-0</div>
  <div class="box p-3 bg-pink absolute z-10" style="inset: 1rem 2rem 1rem 2rem">z-10</div>
  <div class="box p-3 bg-cyan absolute z-20" style="inset: 2rem 0 0 4rem">z-20</div>
</div>
<div class="relative">
  <div class="absolute z-0">…</div>
  <div class="absolute z-10">…</div>
</div>

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