DynamicMaterialExpressiveTheme

fun DynamicMaterialExpressiveTheme(seedColor: Color, motionScheme: MotionScheme? = null, isDark: Boolean = isSystemInDarkTheme(), isAmoled: Boolean = false, primary: Color? = null, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.Expressive, contrastLevel: Double = Contrast.Default.value, specVersion: ColorSpec.SpecVersion = ColorSpec.SpecVersion.SPEC_2025, platform: DynamicScheme.Platform = DynamicScheme.Platform.Default, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: FiniteAnimationSpec<Color> = defaultColorSpring, content: @Composable () -> Unit)

A wrapper around MaterialExpressiveTheme that adapts to the given DynamicMaterialThemeState.seedColor.

The style defaults to the PaletteStyle.Expressive, and the specVersion defaults to the ColorSpec.SpecVersion.SPEC_2025. You can access the current seed color via LocalDynamicMaterialThemeSeed.

Parameters

seedColor

The seed color to use for generating the color scheme.

motionScheme

The motion scheme of the theme.

isDark

Whether to use a dark theme or not.

isAmoled

Whether the dark scheme is used with Amoled screen (Pure dark).

primary

The custom primary color of the color scheme.

secondary

The custom secondary color of the color scheme.

tertiary

The custom tertiary color of the color scheme.

neutral

The custom neutral color of the color scheme.

neutralVariant

The custom neutral variant color of the color scheme.

error

The custom error color of the color scheme.

style

The style of the color scheme.

contrastLevel

The contrast level of the color scheme.

specVersion

The spec version of the color scheme.

platform

The platform of the color scheme.

shapes

The shapes of the theme.

typography

The typography of the theme.

animate

Whether to animate the color scheme or not.

animationSpec

The animation spec to use for animating the color scheme.

content

The Composable content of the theme.

See also


fun DynamicMaterialExpressiveTheme(primary: Color, motionScheme: MotionScheme? = null, isDark: Boolean = isSystemInDarkTheme(), isAmoled: Boolean = false, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.Expressive, contrastLevel: Double = Contrast.Default.value, specVersion: ColorSpec.SpecVersion = ColorSpec.SpecVersion.SPEC_2025, platform: DynamicScheme.Platform = DynamicScheme.Platform.Default, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: FiniteAnimationSpec<Color> = defaultColorSpring, content: @Composable () -> Unit)

A wrapper around MaterialExpressiveTheme that adapts to the given DynamicMaterialThemeState.seedColor.

The style defaults to the PaletteStyle.Expressive, and the specVersion defaults to the ColorSpec.SpecVersion.SPEC_2025. You can access the current seed color via LocalDynamicMaterialThemeSeed.

Parameters

primary

The primary color of the color scheme.

motionScheme

The motion scheme of the theme.

isDark

Whether to use a dark theme or not.

isAmoled

Whether the dark scheme is used with Amoled screen (Pure dark).

secondary

The custom secondary color of the color scheme.

tertiary

The custom tertiary color of the color scheme.

neutral

The custom neutral color of the color scheme.

neutralVariant

The custom neutral variant color of the color scheme.

error

The custom error color of the color scheme.

style

The style of the color scheme.

contrastLevel

The contrast level of the color scheme.

specVersion

The spec version of the color scheme.

platform

The platform of the color scheme.

shapes

The shapes of the theme.

typography

The typography of the theme.

animate

Whether to animate the color scheme or not.

animationSpec

The animation spec to use for animating the color scheme.

content

The Composable content of the theme.

See also


fun DynamicMaterialExpressiveTheme(state: DynamicMaterialThemeState, motionScheme: MotionScheme? = null, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: FiniteAnimationSpec<Color> = defaultColorSpring, content: @Composable () -> Unit)

A wrapper around MaterialExpressiveTheme that adapts to the given DynamicMaterialThemeState.seedColor.

You can access the current seed color via LocalDynamicMaterialThemeSeed.

Note: For best results, you should use ColorSpec.SpecVersion.SPEC_2025 and PaletteStyle.Expressive when constructing the DynamicMaterialThemeState.

Parameters

state

The state of the dynamic material theme.

motionScheme

The motion scheme to use.

shapes

The shapes to use.

typography

The typography to use.

animate

Whether to animate the color scheme or not.

animationSpec

The animation spec to use for animating the color scheme.

content

The Composable content of the theme.

See also