paletteonColorScheme

fun paletteonColorScheme(seedColor: Color, isDark: Boolean, isAmoled: Boolean, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, modifyColorScheme: (ColorScheme) -> ColorScheme? = null): ColorScheme

Creates a ColorScheme based on the given seedColor and isDark mode.

Parameters

seedColor

The color to base the scheme on.

isDark

Whether the scheme should be dark or light.

isAmoled

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

style

The style of the scheme.

contrast

The contrast level of the scheme.

isExtendedFidelity

Whether to use the extended fidelity color set. See MaterialDynamicColors.