TypographyFont Family

Font Family

Controls the font family of an element.

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.

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.