jengaTypography

fun jengaTypography(fontFamily: FontFamily = FontFamily.Default, displayFontFamily: FontFamily = fontFamily, bodyFontFamily: FontFamily = fontFamily, monoFontFamily: FontFamily = FontFamily.Monospace): JengaTypography(source)

Builds the default Jenga type scale.

A brand may run two typefaces, one for display roles (display, heading*, title*) and one for body text (body*, label, caption, button). Pass displayFontFamily and bodyFontFamily separately for that; pass a single fontFamily to use one face across the whole scale (it defaults both).

Parameters

fontFamily

one face for the whole scale, and the default for the two below. Defaults to FontFamily.Default; JengaTheme injects the Outfit brand family (see rememberJengaFontFamily) when none is supplied.

displayFontFamily

the face for display, heading and title roles.

bodyFontFamily

the face for body, label, caption and button roles.

monoFontFamily

the face for the mono role; FontFamily.Monospace by default.