Install
Add one CSS file and one script to any page. No build step, no framework.
The two files
Put the stylesheet in the <head> and the script at the end of the <body>. Icons come from Moey Icons, a second stylesheet.
<link rel="stylesheet" href="momo.css">
<link rel="stylesheet" href="moey-icons.min.css">
…
<script src="momo.js"></script>
Everything works from plain HTML classes. The script adds the parts that need it: menus, dialogs, the navbar panel, this sidebar on phones.
Your first page
Start with a navbar, a hero and a footer. Each one is a few lines of HTML and works on phones without extra code.
Pages are built from sections: full-width bands with space above and below, each holding a container that keeps the content in a centered column.
Change the look with a handful of settings: one brand color, the corner size, the line width and whether things have shadows.
A typical landing page has five or six sections: the hero, what it does, who uses it, prices, questions and a last call to action. Give neighbours different backgrounds so the eye can tell where one ends.
<section class="section section-surface">
<div class="container">…</div>
</section>
Keep the text column narrow enough to read comfortably: about 60 to 75 characters a line.
Dark mode
Momo follows the reader's system setting. To let them choose, set data-momo-mode="dark" or "light" on <html>.
Every color has a dark version, chosen so text stays easy to read on it.
Test both modes before you ship. Pictures with a white background can look like holes in dark mode: give them a soft frame or a dark version.
Shadows stay hard and visible in dark mode; lines get a little lighter so they still show.
Browsers
Momo uses modern CSS: cascade layers, container queries and the popover attribute. It works in current Chrome, Edge, Firefox and Safari.
Older browsers still show the content; some menus open in place instead of floating.
Nothing needs a polyfill. Where a browser is missing a feature, Momo falls back to something simpler instead of breaking: the page still reads top to bottom.
Test on a real phone when you can. The browser's phone view is close, but touch and the on-screen keyboard behave a little differently.
What changed in 1.0
The site sidebar, the announcement bar, mega menus, drawers that slide out as well as in, and a floating navbar.
Nothing was removed, so pages built with earlier versions keep working.
The full list is in the changelog, with a note for anything you may want to update by hand.