Skip to main content

Module theme

Module theme 

Source
Expand description

Material theme primitives for color, typography, and shape.

§Usage

Provide app-wide defaults for Material components.

Structs§

ContentColor
Ambient content color used by text and icons when no explicit tint is provided.
MaterialAlpha
Standard Material 3 alpha values used for state layers and disabled content.
MaterialColorScheme
A Material Design color scheme, which can be light or dark, produced from a seed color.
MaterialShapes
Material shape scale used by components to resolve default container shapes.
MaterialTheme
Material theme container holding the three primary Material 3 theme primitives.
MaterialThemeBuilder
Configuration handle returned by material_theme.
MaterialTypography
Material typography scale used by components to resolve default text styles.
TextSelectionColors
Colors used for text selection highlights and handles.
TextStyle
Font family, metrics, weight, and tracking for a single text style.

Functions§

content_color_for
Returns the matching content color for a background color in the scheme.
material_theme
material_theme