Prose

The prose component provides proper styling for rendered Markdown.

Parameters

ClassDescriptionParentModifies
.s-proseAdds proper styling for rendered Markdown.N/AN/A
.s-prose__smDecreases the base font size and line height.N/A.s-prose

Examples

Minimal

We modified this test document from the folks at Tailwind to demonstrate and explain our design choices.

<div class="s-prose">
    …
</div>

Full Markdown spec

This example includes the full kitchen-sink collection of everything the Markdown spec includes.

Sizing

Small

In ancillary content like comments or side-discussions, it may be appropriate to add the small variation.

<div class="s-prose s-prose__sm">
    …
</div>