API reference

Typography Interface

Semantic text styles used throughout UISet.

Signature

@Immutable interface Typography

Properties

body : TextStyle
[Get]
default reading and control text
Signature
abstract val body: TextStyle
bodySmall : TextStyle
[Get]
supporting text
Signature
abstract val bodySmall: TextStyle
bodySmallStrong : TextStyle
[Get]
bold emphasis derived from Typography.bodySmall
Signature
open val bodySmallStrong: TextStyle
bodyStrong : TextStyle
[Get]
bold emphasis derived from Typography.body
Signature
open val bodyStrong: TextStyle
caption : TextStyle
[Get]
lowest-emphasis metadata
Signature
abstract val caption: TextStyle
display : TextStyle
[Get]
largest display heading
Signature
abstract val display: TextStyle
headline : TextStyle
[Get]
screen or section heading
Signature
abstract val headline: TextStyle
label : TextStyle
[Get]
compact control, field, or eyebrow label
Signature
abstract val label: TextStyle
title : TextStyle
[Get]
component and dialog title
Signature
abstract val title: TextStyle

Extension Functions

copy ( display , headline , title , label , body , bodySmall , caption )
Copies the base typography roles into UISet's default implementation.
Typography.bodyStrong and Typography.bodySmallStrong are re-derived from the resulting Typography.body and Typography.bodySmall values. Overrides of those derived roles on a custom Typography implementation are intentionally not preserved; callers that need that level of customization should implement Typography directly.
Signature
fun Typography.copy(
    display: TextStyle = this.display,
    headline: TextStyle = this.headline,
    title: TextStyle = this.title,
    label: TextStyle = this.label,
    body: TextStyle = this.body,
    bodySmall: TextStyle = this.bodySmall,
    caption: TextStyle = this.caption,
): Typography
Extension declared in metavrx.uiset.compose.theme
Parameters
display: TextStyle  largest display heading
headline: TextStyle  screen or section heading
title: TextStyle  component and dialog title
label: TextStyle  compact control, field, or eyebrow label
body: TextStyle  default reading and control text
bodySmall: TextStyle  supporting text
caption: TextStyle  lowest-emphasis metadata
Returns
Typography