Skip to content
v0.9.1
Guides

Breakpoints

The screen widths at which layouts change. Momo starts from the phone and adds to it as the screen gets wider, and many parts follow the room they have, not the screen.

The five widths

NameFromThink ofIn a class
(none)0Phonesflex
sm576pxBig phones, small tabletssm:flex
md768pxTabletsmd:flex
lg1024pxLaptopslg:flex
xl1280pxDesktopsxl:flex
2xl1536pxWide desktops2xl:flex

A class without a name applies everywhere. A class with a name applies from that width up. So you write the phone layout first and then say what changes.

One
Two
Three
Four
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3" id="bp-grid">
  <div class="box p-4 bg-yellow-soft">One</div>
  <div class="box p-4 bg-pink-soft">Two</div>
  <div class="box p-4 bg-cyan-soft">Three</div>
  <div class="box p-4 bg-lime-soft">Four</div>
</div>
<!-- one column on phones, two from 576px, four from 1024px -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3">…</div>

Layout, spacing, sizing, text size and alignment, position and overflow have these screen-size versions. Colors, borders and motion do not: they rarely change with the screen. The full list is on Utilities.

The room a box has

A card in a sidebar and the same card in the main column have very different room. Mark a box with @container, and the @ classes inside it follow that box's width.

NameBox is at leastIn a class
@xs320px@xs:flex-row
@sm384px@sm:flex-row
@md448px@md:flex-row
@lg512px@lg:flex-row
@xl576px@xl:flex-row
@2xl672px@2xl:flex-row

What the components do

In your own CSS

Use the same numbers, written as a range. Momo's own phone rules stop just under 576px.

@media (width >= 768px) { .my-sidebar { display: block; } }     /* md and up */
@media (max-width: 575.98px) { .my-toolbar { flex-wrap: wrap; } }  /* phones only */

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