Font Family
Controls the font family of an element.
| Class | Style |
|---|---|
ff-c | font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif; |
ff-m | font-family: "Nimbus Mono PS", "Courier New", monospace; |
ff-s | font-family: system-ui, sans-serif; |
Charter
If Charter is not available, it will fall back to Cambria, and then to a generic serif font.
Sphinx of black quartz, judge my vow.
<p class="ff-c fs-lg ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>UI Monospace
If ui-monospace is not available, it will fall back to Consolas, and then to a generic monospace font.
Sphinx of black quartz, judge my vow.
<p class="ff-m fs-lg ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>System UI
If system-ui is not available, it will fall back to a generic sans-serif font.
Sphinx of black quartz, judge my vow.
<p class="ff-s fs-lg ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:ff-*, md:ff-*, lg:ff-*, and xxl:ff-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:ff-* utility to override elements and change their values when hovering over them.