---
title: "styleGraphicsLayer"
description: "Transitionary modifier."
type: "modifier"
lastmod: "2026-09-24"
---
## API Reference

### styleGraphicsLayer

> Source set: Common

```kotlin
public fun Modifier.styleGraphicsLayer(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 [Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api) based API and the new
[CustomStyle](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/CustomStyle/api) based API. This duplicates the graphics layer behavior of [LayerStyleScope](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/LayerStyleScope/api) in a
[Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api).
