Typography
Documentation and examples for Front typography, including global settings, headings, body text, lists, and more.
Headings
All HTML headings, <h1>
through <h6>
, are available.
.h1
through .h6
classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
Customizing headings
Use the included utility classes to recreate the small secondary heading text.
Display headings
Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a display heading—a larger, slightly more opinionated heading style.
Lead
Make a paragraph stand out by adding .lead
.
Inline text elements
Styling for common inline HTML5 elements.
.mark
and .small
classes are also available to apply the same styles as <mark>
and <small>
while avoiding any unwanted semantic implications that the tags would bring.
While not shown above, feel free to use <b>
and <i>
in HTML5. <b>
is meant to highlight words or phrases without conveying additional importance while <i>
is mostly for voice, technical terms, etc.
Abbreviations
Stylized implementation of HTML's <abbr>
element is applied for abbreviations and acronyms to show the expanded version on hover. Abbreviations have a default underline and gain a help cursor to provide additional context on hover and to users of assistive technologies.
Add .initialism
to an abbreviation for a slightly smaller font-size.
Blockquotes
For quoting blocks of content from another source within your document. Wrap <blockquote class="blockquote">
around any HTML as the quote.
Naming a source
Add a <footer class="blockquote-footer">
for identifying the source. Wrap the name of the source work in <cite>
.
Alignment
Use text utilities as needed to change the alignment of your blockquote.
Description list alignment
Align terms and descriptions horizontally by using our grid system's predefined classes (or semantic mixins). For longer terms, you can optionally add a .text-truncate
class to truncate the text with an ellipsis.