Skip to content
v0.9.1
Foundations

Prose

For long text you don't write class by class: a blog post, a help article, anything that comes out of a CMS or Markdown. Wrap it in .prose and plain HTML gets comfortable line length, spacing, quotes, lists, pictures and tables.

Prose

Why we stopped using ten colors

For years every button on our site had its own color. Then we tried one.

It started as an experiment on a single page. We took the old palette of ten colors and replaced all of them with one strong yellow and black. Nothing else changed.

What happened

People found the main button faster. Here is what we measured over two weeks:

  • Sign-ups went up by a fifth.
  • Fewer people asked support where to start.
  • Designers stopped arguing about which blue to use.
    • That one alone was worth it.

Color is loudest when there is only one of it.

Our design lead, in a meeting
Flat yellow hills under a blue sky with a yellow sun
The new look: one yellow, everywhere.

How to try it yourself

  1. Pick the color people should click.
  2. Make everything else black, white or gray.
  3. Change it in one place: --momo-brand.
BeforeAfter
10 colors1 color
3 button styles1 main, 1 plain

Have you tried this? Press R to reply.

<article class="prose">
  <h2>Why we stopped using ten colors</h2>
  <p class="lead">For years every button on our site had its own color. Then we tried one.</p>
  <p>It started as an experiment on a single page. We took the <a href="#">old palette</a> of ten colors and replaced all of them with <strong>one strong yellow</strong> and black. Nothing else changed.</p>
  <h3>What happened</h3>
  <p>People found the main button faster. Here is what we measured over two weeks:</p>
  <ul>
    <li>Sign-ups went up by a fifth.</li>
    <li>Fewer people asked support where to start.</li>
    <li>Designers stopped arguing about which blue to use.
      <ul><li>That one alone was worth it.</li></ul>
    </li>
  </ul>
  <blockquote>
    <p>Color is loudest when there is only one of it.</p>
    <cite>Our design lead, in a meeting</cite>
  </blockquote>
  <figure>
    <img src="../examples/img/sample-1.svg" alt="Flat yellow hills under a blue sky with a yellow sun" width="1200" height="800">
    <figcaption>The new look: one yellow, everywhere.</figcaption>
  </figure>
  <h3>How to try it yourself</h3>
  <ol>
    <li>Pick the color people should click.</li>
    <li>Make everything else black, white or gray.</li>
    <li>Change it in one place: <code>--momo-brand</code>.</li>
  </ol>
  <table>
    <thead><tr><th>Before</th><th>After</th></tr></thead>
    <tbody><tr><td>10 colors</td><td>1 color</td></tr><tr><td>3 button styles</td><td>1 main, 1 plain</td></tr></tbody>
  </table>
  <hr>
  <p>Have you tried this? Press <kbd>R</kbd> to reply.</p>
</article>

Sizes

.prose-sm for side notes and help panels, .prose-lg for a feature article. The text column is at most 672px (--prose-width); .prose-full lets it fill its box.

<article class="prose prose-lg mx-auto">
  …your HTML or Markdown output…
</article>

What it styles

ElementLooks
h2, h3, h4Space above to start a new part, less below so the heading belongs to its text
aBold, with a soft thick underline that darkens on hover
ul, olGray bullets, bold numbers, nested lists
blockquote + citeA thick line at the start, the source under it
figure, img, figcaptionFull width, rounded, a line around, a centered caption
tableLight lines between rows
hr, dl, code, kbd, markMatching the rest of Momo
p.leadA bigger first paragraph

The rules are deliberately weak: any class you put on an element inside .prose wins, so a card or a code block inside an article keeps its own look.

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