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

### toCommonStyle

> Source set: Common

```kotlin
public fun Style.toCommonStyle(): CommonStyle
```

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

Convert a [Style](/jetpack-compose/androidx.compose.foundation/foundation/functions/Style/api) into a [CommonStyle](/jetpack-compose/androidx.compose.foundation/foundation/functions/CommonStyle/api) for use by the [StyleResolver](/jetpack-compose/androidx.compose.foundation/foundation/classes/StyleResolver/api).

This function will be removed before style becomes stable. It is not yet deprecated to facilitate
removing code that was written using the experimental 1.11 version of this API.
