Compose Component

MaterialTheme

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

MaterialTheme social preview

MaterialTheme

Source set: Common
@Composable
public fun MaterialTheme(
    colorScheme: ColorScheme = MaterialTheme.colorScheme,
    shapes: Shapes = MaterialTheme.shapes,
    typography: Typography = MaterialTheme.typography,
    content: @Composable () -> Unit,
): Unit

Parameters

colorScheme A complete definition of the Material Color 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

MaterialTheme

Source set: Common
@Composable
public fun MaterialTheme(
    colorScheme: ColorScheme = MaterialTheme.colorScheme,
    motionScheme: MotionScheme = MaterialTheme.motionScheme,
    shapes: Shapes = MaterialTheme.shapes,
    typography: Typography = MaterialTheme.typography,
    content: @Composable () -> Unit,
)

Parameters

colorScheme A complete definition of the Material Color theme for this hierarchy
motionScheme A complete definition of the Material Motion scheme 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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: