Font Family

Set the font family for an element.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

Serif

If Serif 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="c-slate ff-s fs-lg ta-c">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="c-slate ff-m fs-lg ta-c">Sphinx of black quartz, judge my vow.</p>

Default

If Default is not available, it will fall back to a generic sans-serif font.

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

Sphinx of black quartz, judge my vow.

<p class="c-slate ff-d fs-lg ta-c">Sphinx of black quartz, judge my vow.</p>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:ff-*
Small640px
md:ff-*
Medium768px
lg:ff-*
Large1024px
xxl:ff-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:ff-*