API reference

LocalTextStyle Composition Local

The text style Text uses when given no explicit style. UiSetTheme provides typography.body; components that own their text — button labels, field labels, dialog titles — pass the role they need rather than reading this, so it governs app-authored Text only.
Compose Foundation defines no equivalent, so this is UISet's own — not androidx.compose.material3.LocalTextStyle. Defaults to TextStyle.Companion.Default outside a theme, which is unstyled platform text rather than a VR type role.
Type: ProvidableCompositionLocal

Signature

val LocalTextStyle: ProvidableCompositionLocal<TextStyle>