How to use opacity's theme tokens in Material Design 3

302 Views Asked by At

During theme's migration process I stuck with opacity's token in Material Design 3. I didn't find any in androidx.compose.material3.

I'm looking for something like construction below I was used with Material Design 2

modifier = Modifier.alpha(if (isSelected) ContentAlpha.high else ContentAlpha.medium)

Could you explain, how to control opacity with theme's tokens in Material Design 3? Thanks.

0

There are 0 best solutions below