fromMaterial

A scheme whose every screen takes its colors from the Material 3 roles in colors. Copy it and set the slice colors that should differ. Not composable, so it can be built in onCreate().

Return

A UiColorScheme on colors with every slice color unspecified.

Parameters

colors

The Material 3 color scheme to theme the SDK with.