applyTonalElevation

fun SparkColors.applyTonalElevation(backgroundColor: Color, elevation: Dp): Color(source)

Returns the new background Color to use, representing the original background backgroundColor with an overlay corresponding to elevation applied. The overlay will only be applied to ColorScheme.surface.