Font family
Utilities for controlling the font family of an element
Class reference
Display
Use .font-display
to apply Magistral to top-level headings:
When using the
.font-display
it should coupled with .uppercase
and a tracking of .tracking-wider
or greater.Sans-serif
Use .font-sans
to apply a Roboto:
Serif
Use .font-serif
to apply a web safe serif font family:
Monospaced
Use .font-mono
to apply our monospaced font family ‘Roboto Mono’:
Responsive
To control the font family of an element at a specific breakpoint, add a {screen}:
prefix to any existing font family utility class. For example, use md:font-serif
to apply the font-serif
utility at only medium screen sizes and above.
<p class="font-sans **md:font-serif**">
<!-- ... -->
</p>
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5