MaterialExpressiveTheme

@Composable
fun MaterialExpressiveTheme(colorScheme: ColorScheme? = null, motionScheme: MotionScheme? = null, shapes: Shapes? = null, typography: Typography? = null, content: @Composable () -> Unit)

Material Expressive Theming refers to the customization of your Material Design app to better reflect your product’s brand.

Material components such as Button and Checkbox use values provided here when retrieving default values.

All values may be set by providing this component with the colorScheme, typography, shapes attributes. Use this to configure the overall theme of elements within this MaterialTheme.

Any values that are not set will fall back to the defaults. To inherit the current value from the theme, pass them into subsequent calls and override only the parts of the theme definition that need to change.

Alternatively, only call this function at the top of your application, and then call MaterialTheme to specify separate MaterialTheme(s) for different screens / parts of your UI, overriding only the parts of the theme definition that need to change.

Parameters

colorScheme

A complete definition of the Material Color theme for this hierarchy

motionScheme

A complete definition of the Material motion theme for this hierarchy

shapes

A set of corner shapes to be used as this hierarchy's shape system

typography

A set of text styles to be used as this hierarchy's typography system

content

The content inheriting this theme

Samples

androidx.compose.material3.samples.MaterialExpressiveThemeSample