Call to action
The closing ask: one line, one sentence, one or two buttons. Plain, painted in a color, with the buttons beside the text, or with an email field.
Centered
.cta holds a .cta-body (the title and the text) and .cta-actions. .cta-center centers it.
Ready when you are.
Set up your shop in five minutes. Free for your first shop, for as long as you like.
No card needed
<div class="cta cta-center" id="cta-plain">
<div class="cta-body">
<h2 class="cta-title">Ready when you are.</h2>
<p class="cta-text">Set up your shop in five minutes. Free for your first shop, for as long as you like.</p>
</div>
<div class="cta-actions">
<a class="btn btn-lg btn-brand" href="#centered">Get started</a>
<a class="btn btn-lg btn-ghost" href="#centered">Talk to us</a>
</div>
<p class="cta-note"><i class="mi mi-credit-card"></i> No card needed</p>
</div><div class="cta cta-center">
<div class="cta-body">
<h2 class="cta-title">Ready when you are.</h2>
<p class="cta-text">Set up your shop in five minutes.</p>
</div>
<div class="cta-actions">
<a class="btn btn-lg btn-brand" href="/signup">Get started</a>
<a class="btn btn-lg btn-ghost" href="/contact">Talk to us</a>
</div>
<p class="cta-note">No card needed</p>
</div>Painted, with a shadow
Add any .bg-<color> to paint it, and .cta-shadow for the hard shadow. An ink button (.btn-ink) reads well on every color.
Sell your first product today
Join 4,200 small shops that run on Momo. Moving from another shop takes one afternoon.
<div class="cta cta-center cta-shadow bg-yellow" id="cta-paint">
<div class="cta-body">
<h2 class="cta-title">Sell your first product today</h2>
<p class="cta-text">Join 4,200 small shops that run on Momo. Moving from another shop takes one afternoon.</p>
</div>
<div class="cta-actions">
<a class="btn btn-lg btn-ink" href="#painted-with-a-shadow">Start free</a>
<a class="btn btn-lg" href="#painted-with-a-shadow"><i class="mi mi-play"></i> Watch the tour</a>
</div>
</div>Buttons beside the text
.cta-split puts the buttons beside the text when the block is wide enough and under it when it is not. It follows its own width, not the screen's, so it also works in a narrow column.
Try Momo on your shop
Import your products from a spreadsheet and see your dashboard in minutes.
<div class="cta cta-split bg-violet-soft" id="cta-split">
<div class="cta-body">
<h2 class="cta-title">Try Momo on your shop</h2>
<p class="cta-text">Import your products from a spreadsheet and see your dashboard in minutes.</p>
</div>
<div class="cta-actions">
<a class="btn btn-lg btn-brand" href="#buttons-beside-the-text">Start free</a>
</div>
</div><div class="cta cta-split bg-violet-soft">
<div class="cta-body">…title and text…</div>
<div class="cta-actions">
<a class="btn btn-lg btn-brand" href="/signup">Start free</a>
</div>
</div>With an email field
.cta-form lines a field up with its button: a newsletter or a waiting list. On a narrow screen the button drops under the field.
One good email a month
New products, a story from a shop like yours, and nothing else.
<div class="cta cta-split" id="cta-news">
<div class="cta-body">
<h2 class="cta-title">One good email a month</h2>
<p class="cta-text">New products, a story from a shop like yours, and nothing else.</p>
</div>
<form class="cta-form" id="cta-news-form">
<div class="form-icon"><i class="mi mi-mail" aria-hidden="true"></i><input class="form-control" type="email" placeholder="you@example.com" aria-label="Email address" required></div>
<button class="btn btn-brand" type="submit">Subscribe</button>
</form>
</div>
<script>
document.getElementById('cta-news-form').addEventListener('submit', function (e) {
e.preventDefault(); // your form would really be sent here
Momo.toast({ title: 'You are on the list', text: 'Look for a welcome email in a minute.', color: 'green', icon: 'check' });
e.target.reset();
});
</script><form class="cta-form" action="/subscribe" method="post">
<input class="form-control" type="email" name="email" placeholder="you@example.com" aria-label="Email address" required>
<button class="btn btn-brand" type="submit">Subscribe</button>
</form>Small, inside an app
.cta-sm is compact: an upgrade prompt in a sidebar, a nudge inside a card.
<div class="cta cta-sm bg-cyan-soft w-64 max-w-full" id="cta-small">
<div class="cta-body">
<h3 class="cta-title">9 of 10 projects used</h3>
<p class="cta-text">Upgrade to Team for unlimited projects and shared boards.</p>
</div>
<div class="cta-actions"><a class="btn btn-sm btn-ink" href="#small-inside-an-app">Upgrade</a><a class="btn btn-sm btn-ghost" href="#small-inside-an-app">Not now</a></div>
</div>Good to know
- Ask for one thing. The main button says what happens ("Start free"), and a second button is the quieter way out.
- The title is an
<h2>on a landing page; inside an app use the heading level that fits. - For a band across the whole page, put it in a full-width section and add
.cta-flush: no side borders and no corners. - The opening of a page is a Hero; this is the close.
Reference
| Class | What it does |
|---|---|
.cta | The block (on the surface color, or painted with .bg-<color>) |
.cta-body, .cta-title, .cta-text | The words |
.cta-actions, .cta-note, .cta-form | The buttons, a quiet line under them, a field with its button |
.cta-center, .cta-split | Centered, buttons beside the text when there is room |
.cta-shadow, .cta-flush, .cta-sm | The hard shadow, a band with no side borders or corners, compact |
--cta-pad | The space inside |