<h2 id="contentcolorprovider-contentcolor">contentColorProvider</h2>

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

```kotlin
public fun Modifier.contentColorProvider(contentColor: Color): Modifier
```

Provides `contentColor` for text and iconography to consume. Content color is provided
automatically by [surface](/jetpack-compose/androidx.xr.glimmer/glimmer/modifiers/surface) - contentColorProvider can be used for cases where some text or icons
inside a surface require a different color for emphasis.

#### Parameters

| | |
| --- | --- |
| contentColor | the content color to provide for descendants |