rememberDynamicScheme

fun rememberDynamicScheme(seedColor: Color, isDark: Boolean, primary: Color? = null, secondary: Color? = null, tertiary: Color? = null, neutral: Color? = null, neutralVariant: Color? = null, error: Color? = null, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value): DynamicScheme

Create and remember a DynamicScheme based on the provided colors.

If a color is not provided, then the color palette will be generated from the style and seedColor.

Parameters

seedColor

The color to base the scheme on.

isDark

Whether the scheme should be dark or light.

primary

The primary color of the scheme.

secondary

The secondary color of the scheme.

tertiary

The tertiary color of the scheme.

neutral

The neutral color of the scheme.

neutralVariant

The neutral variant color of the scheme.

error

The error color of the scheme.

style

The style of the scheme.

contrastLevel

The contrast level of the scheme.