rememberTonalPalette

fun rememberTonalPalette(seed: Color, harmonizeWith: Color? = null): TonalPalette

Create and remember a TonalPalette for a seed color the scheme does not cover.

A com.materialkolor.dynamiccolor.DynamicScheme carries six ramps. Themes that own more accents than that, a status color or a decorative one per category, build the rest from their own seeds. Pass harmonizeWith to pull the seed towards another color, usually the scheme's source, so the extra accents look like they belong to the same theme.

Return

The remembered TonalPalette.

Parameters

seed

The color to generate the TonalPalette from.

harmonizeWith

The color to shift seed towards before generating, or null to use seed as it is.