

The basis of Material Design 3 theming in Jetpack Compose is the MaterialTheme composable, where you provide ColorScheme and Typography instances containing your styling parameters: Any changes you make will not be reflected in the Activity theme. You can modify the resulting MaterialTheme in Compose as required, but this only works in Compose.Therefore only the app:cornerFamily attribute is read, others ( app:cornerFamilyTopLeft, etc) are ignored. MDC ShapeAppearances allow setting of different corner families (cut, rounded) on each corner, whereas Compose's Shapes allows only a single corner family for the entire shape.Variable fonts are not supported in Compose yet, meaning that the value of android:fontVariationSettings are currently ignored.You can enable it via the setTextColors function parameter. Text colors are not read from the text appearances by default.This relies on your Activity/ Context theme extending one of the Theme.MaterialComponents themes.There are some known limitations with the implementation at the moment: Then pass them through to MaterialTheme. Modify colors, typography or shapes as required. Var (colors, typography, shapes) = createMdcTheme( Val layoutDirection = LocalLayoutDirection.current
