TypographyFont Family

Font Family

Controls the font family of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
ff-cfont-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
ff-mfont-family: "Nimbus Mono PS", "Courier New", monospace;
ff-sfont-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.

Yumma CSS uses the fontSystem as a default font family. Learn more about it in the docs.

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.

Targeting different viewports

You can combine responsive breakpoints like sm:ff-*, md:ff-*, lg:ff-*, and xxl:ff-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:ff-* utility to override elements and change their values when hovering over them.