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

### styleContentPadding

> Source set: Common

```kotlin
public fun Modifier.styleContentPadding(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 behavior of the [contentPadding](/jetpack-compose/androidx.compose.foundation/foundation/functions/contentPadding/api) properties of
[Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api).
