Hero
The big opening block of a page: a short message, one or two buttons and maybe a picture. It can fill the whole screen, run edge to edge, sit text beside a picture, and take any Momo color or a background pattern.
Full screen, edge to edge
.hero-full fills the screen height and .hero-wide drops the box so it runs from edge to edge. Put a wide hero straight in <main>, not inside a centered container. With a sticky header above it, set --hero-offset to the header height so the hero still fits the screen exactly.
Open the landing example on its own.
<section class="hero hero-full hero-wide hero-paper hero-lines">
<div class="hero-inner"> … </div>
<a class="hero-scroll" href="#features" aria-label="Scroll to features"><i class="mi mi-arrow-down"></i></a>
</section>
.site-header + main .hero-full { --hero-offset: 4rem; }
Centered
The default: text in the middle of a bordered box. .hero-eyebrow is the little pill above the title (a link or a label), mark in the title gets a highlighter, and .hero-note is the small print under the buttons.
Plan, track and ship
Projects, tasks and docs in one calm place, made for small teams that move fast.
Free for teams of up to 5 people
<section class="hero hero-dots" aria-labelledby="hr-1">
<div class="hero-inner">
<a class="hero-eyebrow" href="#"><i class="mi mi-sparkles" aria-hidden="true"></i> Version 2 is out</a>
<h2 class="hero-title" id="hr-1">Plan, track and <mark>ship</mark></h2>
<p class="hero-lead">Projects, tasks and docs in one calm place, made for small teams that move fast.</p>
<div class="hero-actions">
<a class="btn btn-brand btn-lg" href="#">Start free</a>
<a class="btn btn-lg" href="#"><i class="mi mi-circle-play" aria-hidden="true"></i> Watch the tour</a>
</div>
<p class="hero-note">Free for teams of up to 5 people</p>
</div>
</section>Text and picture
.hero-split puts a .hero-text beside a .hero-media. When the hero is narrower than 720px they stack, centered. .hero-reverse puts the picture first.
<section class="hero hero-split hero-cyan" aria-labelledby="hr-2">
<div class="hero-inner">
<div class="hero-text">
<span class="hero-eyebrow">CRM</span>
<h2 class="hero-title" id="hr-2">Every deal in one board</h2>
<p class="hero-lead">Drag deals between stages, see who is next to call and never lose a follow-up.</p>
<div class="hero-actions"><a class="btn btn-ink btn-lg" href="#">Try it</a><a class="btn btn-lg" href="#">Pricing</a></div>
</div>
<div class="hero-media">
<div class="stat"><span class="stat-label">Pipeline this month</span><span class="stat-value">$184K</span><span class="stat-meta"><span class="stat-change is-up"><i class="mi mi-trending-up" aria-hidden="true"></i> 18%</span> vs last month</span></div>
</div>
</div>
</section>Left aligned, with numbers
.hero-start lines everything up on the left. .hero-stats adds a row of big numbers; .hero-proof is a row for logos or short facts.
Your week, at a glance
Momo turns scattered updates into one dashboard your whole team reads on Monday morning.
<section class="hero hero-start hero-ink hero-sm" aria-labelledby="hr-3">
<div class="hero-inner">
<h2 class="hero-title" id="hr-3">Your week, at a glance</h2>
<p class="hero-lead">Momo turns scattered updates into one dashboard your whole team reads on Monday morning.</p>
<div class="hero-actions"><a class="btn btn-lg" href="#">Open dashboard</a></div>
<div class="hero-stats">
<div class="hero-stat"><b>12k</b><span>teams</span></div>
<div class="hero-stat"><b>98%</b><span>stay after a month</span></div>
<div class="hero-stat"><b>4.8</b><span>average rating</span></div>
</div>
</div>
</section>Picture behind
.hero-cover with an img.hero-bg fills the back with a photo and darkens it so white text stays readable.
<section class="hero hero-cover" aria-labelledby="hr-4">
<img class="hero-bg" alt="" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Crect width='16' height='9' fill='%23a9baf8'/%3E%3Ccircle cx='12' cy='3' r='1.6' fill='%23fae8a4'/%3E%3Cpath d='M0 9 5 4l4 4 3-2 4 3z' fill='%2398e9ab'/%3E%3C/svg%3E">
<div class="hero-inner">
<h2 class="hero-title" id="hr-4">Team retreat 2027</h2>
<p class="hero-lead">Three days in the mountains. Sign up by January 15.</p>
<div class="hero-actions"><a class="btn btn-brand btn-lg" href="#">Save my seat</a></div>
</div>
</section>Options
| Class | Does |
|---|---|
.hero-full | At least the screen height (minus --hero-offset). Add .hero-top or .hero-bottom to move the text up or down. |
.hero-wide | Edge to edge: no rounded box, no side borders |
.hero-sm | Less padding and a smaller title |
.hero-split, .hero-reverse | Text beside a picture (stacks when narrow) |
.hero-start | Left aligned |
.hero-<color>, .hero-ink, .hero-paper | Background color (text stays readable on every one) |
.hero-dots, .hero-lines | A soft dot or grid pattern that fades out at the edges |
.hero-cover + img.hero-bg | A photo behind the text |
.hero-scroll | A round "scroll down" link at the bottom |
Variables
| Variable | Default |
|---|---|
--hero-offset | 0px (height of a sticky header) |
--hero-max | 52rem centered, 72rem split |
--hero-pad | 2.5rem to 6rem, growing with the screen |
--hero-bg / --hero-color / --hero-muted | Background, text and soft text |
Good to know
- Use one
h1per page: the hero title is usually it. - Keep the title short (under 10 words) and give it one clear main button.
- A picture that only decorates gets
alt="".