color

fun color(value: Colors.() -> Property)

This function is used to set a color for the background-color property.

Example call

background {
color { rgba(255, 0, 0, 50) }
// color { secondary }
// color { "white" } (currently we don't provide predefined CSS colors, so you have to provide a String literal)
}

Parameters

value

function parameter in order to return an arbitrary String