GlimmerTheme

Functions summary

Unit
@Composable
GlimmerTheme(
    colors: Colors,
    typography: Typography,
    componentSpacingValues: ComponentSpacingValues,
    content: @Composable () -> Unit
)

Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

Functions

GlimmerTheme

@Composable
fun GlimmerTheme(
    colors: Colors = GlimmerTheme.colors,
    typography: Typography = GlimmerTheme.typography,
    componentSpacingValues: ComponentSpacingValues = GlimmerTheme.componentSpacingValues,
    content: @Composable () -> Unit
): Unit

Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

Components use properties provided here when retrieving default values.

Any values that are not set will inherit the current value from the theme, falling back to the defaults if there is no parent GlimmerTheme. This allows using a GlimmerTheme at the top of your application, and then separate GlimmerTheme(s) for different screens / parts of your UI, overriding only the parts of the theme definition that need to change.

Parameters
colors: Colors = GlimmerTheme.colors

Colors used by components within this hierarchy

typography: Typography = GlimmerTheme.typography

Typography used by components within this hierarchy

componentSpacingValues: ComponentSpacingValues = GlimmerTheme.componentSpacingValues

ComponentSpacingValues used by components within this hierarchy

content: @Composable () -> Unit

The content that can retrieve values from this theme