Package-level declarations

Properties

Link copied to clipboard

A MaterialKolors class that holds the generated colors based on the current state.

Link copied to clipboard
val DynamicMaterialThemeState.m3Colors: MaterialDynamicColors

Returns the Material 3 color scheme based on the current dynamic color scheme.

Functions

Link copied to clipboard
fun animateColorScheme(colorScheme: ColorScheme, animationSpec: @Composable Transition.Segment<ColorScheme>.() -> FiniteAnimationSpec<Color> = { defaultColorSpring }, label: String = "ColorSchemeAnimation"): ColorScheme

Creates an animated version of a ColorScheme where all colors smoothly animate when changed.

Link copied to clipboard
fun ColorScheme.harmonizeWithPrimary(color: Color, matchSaturation: Boolean = false): Color

Returns the Color of the given color harmonized with the ColorScheme.primary.