Skip to content
v0.9.1
Sections

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.

9 of 10 projects used

Upgrade to Team for unlimited projects and shared boards.

<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

Reference

ClassWhat it does
.ctaThe block (on the surface color, or painted with .bg-<color>)
.cta-body, .cta-title, .cta-textThe words
.cta-actions, .cta-note, .cta-formThe buttons, a quiet line under them, a field with its button
.cta-center, .cta-splitCentered, buttons beside the text when there is room
.cta-shadow, .cta-flush, .cta-smThe hard shadow, a band with no side borders or corners, compact
--cta-padThe space inside

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