API reference

ColorRole Class

A semantic container brush paired with content colors designed for that container.

Signature

@Immutable data class ColorRole(val container: BrushSpec, val content: ContentColors)

Constructors

ColorRole ( container , content )
Signature
constructor(container: BrushSpec, content: ContentColors)
Parameters
container: BrushSpec  background brush
content: ContentColors  foreground colors that remain legible on container
Returns
ColorRole

Properties

container : BrushSpec
[Get]
background brush
Signature
val container: BrushSpec
content : ContentColors
[Get]
foreground colors that remain legible on ColorRole.container
Signature
val content: ContentColors