fontFamily

open fun fontFamily(value: FontFamilies.() -> Property)

This function sets the font-family property.

Example call:

fontFamily { body }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.fonts that offer the properties of Fonts

open fun fontFamily(sm: FontFamilies.() -> Property? = null, md: FontFamilies.() -> Property? = null, lg: FontFamilies.() -> Property? = null, xl: FontFamilies.() -> Property? = null)

This function sets the font-family property for each media device independently.

Example call:

fontFamily(
sm = { body },
lg = { heading }
)

Parameters

sm

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.fonts that offer the properties of Fonts

md

extension function parameter for medium sized media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.fonts that offer the properties of Fonts

lg

extension function parameter for large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.fonts that offer the properties of Fonts

xl

extension function parameter for extra large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.fonts that offer the properties of Fonts