{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

MaterialTheme

public static class MaterialTheme


Contains functions to access the current theme values provided at the call site's position in the hierarchy.

Summary

Public fields

static @NonNull MaterialTheme

Public methods

final @NonNull ColorScheme

Retrieves the current ColorScheme at the call site's position in the hierarchy.

final @NonNull Shapes

Retrieves the current Shapes at the call site's position in the hierarchy.

final @NonNull Typography

Retrieves the current Typography at the call site's position in the hierarchy.

Public fields

INSTANCE

public static @NonNull MaterialTheme INSTANCE

Public methods

getColorScheme

@Composable
public final @NonNull ColorScheme getColorScheme()

Retrieves the current ColorScheme at the call site's position in the hierarchy.

getShapes

@Composable
public final @NonNull Shapes getShapes()

Retrieves the current Shapes at the call site's position in the hierarchy.

getTypography

@Composable
public final @NonNull Typography getTypography()

Retrieves the current Typography at the call site's position in the hierarchy.