fontSize

open fun fontSize(value: ScaledValueProperty)

This function sets the font-size property

Example call:

fontSize { small }

Parameters

value

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

open fun fontSize(sm: ScaledValueProperty? = null, md: ScaledValueProperty? = null, lg: ScaledValueProperty? = null, xl: ScaledValueProperty? = null)

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

Example call:

fontSize(
sm = { small },
lg = { normal }
)

Parameters

lg

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

md

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

sm

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

xl

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