Composable Function

RemoteMaterialTheme

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

RemoteMaterialTheme

Android
@Composable
@RemoteComposable
public fun RemoteMaterialTheme(
    colorScheme: RemoteColorScheme = RemoteMaterialTheme.colorScheme,
    typography: RemoteTypography = RemoteMaterialTheme.typography,
    shapes: RemoteShapes = RemoteMaterialTheme.shapes,
    content: @RemoteComposable @Composable () -> Unit,
)

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

Remote Material components such as RemoteButton and RemoteText use values provided here when retrieving default values.

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

Any values that are not set will inherit the current value from the theme, falling back to the defaults if there is no parent MaterialTheme. This allows using a MaterialTheme at the top of your application, and then 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
shapes A set of 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