# styleAppearance

Common/All

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `@https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ExperimentalFoundationStyleApi https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/styleAppearance.modifier#(androidx.compose.ui.Modifier).styleAppearance(androidx.compose.foundation.style.StyleResolver)(styleResolver: https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleResolver)` Transitionary modifier. | Cmn |

## Functions

### Modifier.styleAppearance

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/Appearance.kt+function:styleAppearance) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
@ExperimentalFoundationStyleApi
fun Modifier.styleAppearance(styleResolver: StyleResolver): Modifier
```

Transitionary modifier. Do not use. This will be removed before the Styles API is stable.

This modifier is to help enable transition between the old `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` based API and the new `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/CustomStyle` based API. This duplicates the behavior of the properties from `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope`, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope`, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope`, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope` of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style`.

This will be moved to be an example of how to use `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/appearance.modifier#(androidx.compose.ui.Modifier).appearance(kotlin.Function1)` to implement the style properties similar to those provided in `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style`.