fontSize()
Sets the font size for all controls.
fontSize(sizes: { body: number; smaller: number; larger: number }): this;Notes
- The
smallerandlargerproperties determine the font size used for text elements that have () smaller() or UIText.TextBuilder.larger() applied to them, respectively. - Font sizes are always converted to
remunits, respecting the values of logicalPxScale().
Parameters
- sizes — Font sizes in pixels, for body (regular), smaller, and larger text.
Return value
The theme itself, for method chaining.
Related
class WebTheme
A class that represents a complete visual theme configuration.
