asMaterial3Colors

Converts a SparkColors instance to a Material 3 ColorScheme.

This function maps the Spark color properties to their corresponding Material 3 color roles. Note: Some Material 3 color roles might not have a direct equivalent in SparkColors and are mapped to the closest available Spark color. For example, ColorScheme.tertiary colors are mapped to SparkColors.support colors, and various surface container colors are mapped to the base surface color.

Return

A ColorScheme representing the Material 3 color scheme derived from the SparkColors instance.