Skip to content
v0.9.1
Guides

Reboot

The handful of rules Momo sets on plain HTML before any class is used, so every browser starts from the same place. It is short on purpose: about fifty lines.

The page

RuleWhy
box-sizing: border-box on everythingA width is the whole box, padding and border included
body: no margin, at least the height of the screenA footer can sit at the bottom; nothing peeks around the edges
body: Momo's font, size, weight and line height, ink on paperFrom --momo-font, --momo-font-size, --momo-ink, --momo-paper
Text is not resized by the phone when it is turned sidewaysSizes stay what you set
A double tap does not zoom; pinching still doesButtons answer at once on phones

Text

ElementWhat it gets
Headings, paragraphs, lists, quotes, figures, pre, tablesNo top margin, 1rem below: spacing only ever pushes down
ul, ol1.5rem of room at the start for the bullets (it follows the reading direction)
aThe brand color, a 2px underline set a little lower; ink on hover
b, strongWeight 700
small87.5% of the text around it
hrOne ink line with 1.5rem above and below
code, kbd, samp, preThe mono font at 85%, no ligatures; long code wraps, pre scrolls
Selected textYellow, with dark text

A heading

A paragraph with a link, some bold, small print and inline code.

  • A list item
  • Another one

None of this has a class: it is plain HTML.

<div style="max-width: 32rem" id="rb-demo">
  <h3>A heading</h3>
  <p>A paragraph with a <a href="#text">link</a>, some <b>bold</b>, <small>small print</small> and <code>inline code</code>.</p>
  <ul><li>A list item</li><li>Another one</li></ul>
  <hr>
  <p class="mb-0">None of this has a class: it is plain HTML.</p>
</div>

Media and tables

ElementWhat it gets
img, svg, video, canvasA block that never grows wider than its box, keeping its shape
tableBorders of neighboring cells are one line

Forms and buttons

ElementWhat it gets
input, button, textarea, selectThe page's font and color (browsers give them their own)
buttonA hand pointer; a "not allowed" pointer on anything disabled
Fields on touch screensAt least 16px text, so phones do not zoom in when you tap one

Focus and hiding

RuleWhy
:focus-visible: a 3px ring in --momo-focus, 2px awayKeyboard users always see where they are; a mouse click shows no ring
[hidden] always hidesA class with display cannot bring a hidden element back by accident

Good to know

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