---
title: "LocalTextStyle"
description: "CompositionLocal containing the preferred [TextStyle] that will be used by [Text] components by
default. To set the value for this CompositionLocal, see [ProvideTextStyle] which will merge any
missing [TextStyle] properties with the existing [TextStyle] set in this CompositionLocal."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
val LocalTextStyle = compositionLocalOf(structuralEqualityPolicy()) { DefaultTextStyle }
```


CompositionLocal containing the preferred `TextStyle` that will be used by `Text` components by
default. To set the value for this CompositionLocal, see `ProvideTextStyle` which will merge any
missing `TextStyle` properties with the existing `TextStyle` set in this CompositionLocal.



