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
The new look: one yellow, everywhere.
How to try it yourself
Pick the color people should click.
Make everything else black, white or gray.
Change it in one place: --momo-brand.
Before
After
10 colors
1 color
3 button styles
1 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
Element
Looks
h2, h3, h4
Space above to start a new part, less below so the heading belongs to its text
a
Bold, with a soft thick underline that darkens on hover
ul, ol
Gray bullets, bold numbers, nested lists
blockquote + cite
A thick line at the start, the source under it
figure, img, figcaption
Full width, rounded, a line around, a centered caption
table
Light lines between rows
hr, dl, code, kbd, mark
Matching the rest of Momo
p.lead
A 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.