Font sizes are smaller on mobile and scale up at the
md breakpoint to be larger on desktop.
|Scale||Font size: mobile||Font size: desktop||1.25 line height||1.5 line height|
.h6 to change an elements font size and weight to match our heading styles.
These are particularly useful for changing the visual appearance while keeping the markup semantically correct. Be sure you keep the hierarchy appropriate for the page.
.f6 to change an elements font size while keeping inline with our type scale.
Lighter font-weight utilities are available in a limited range. Lighter font-weights reduce the legibility of text, particularly at small font sizes, so the scale only goes down to
f3 at 20px. The larger sizes
f00 allow for lighter and larger type that is in keeping with our marketing styles.
Change the line height density with these utilities. Responsive variants are also available (e.g.
lh-0 utility class sets
line-height: 0 !important, and can be used to remove vertical spacing from elements that inherit line-height but don't contain any text.
Change the font weight, styles, and alignment with these utilities.
There are two utilities for adjusting how lines and words of text break when they exceed the width of their containing element:
word-break: break-word and
overflow-wrap: break-word, which will only break words if they would exceed the line length after wrapping.
word-break: break-all, which will force a word to break regardless of whether it's shorter than the line length. See MDN's
word-break docs for more info.
Use text alignment utilities to left align, center, or right align text.
Use the following formula to make a text alignment utility responsive:
Remove bullets from an unordered list or numbers from an ordered list by applying
.list-style-none to the