API reference

CardColors Class

Paired colors for a card variant.

Signature

@Immutable
data class CardColors(
    val container: BrushSpec,
    val content: ContentColors,
    val borderColor: Color = Color.Transparent,
)

Constructors

CardColors ( container , content , borderColor )
Signature
constructor(container: BrushSpec, content: ContentColors, borderColor: Color = Color.Transparent)
Parameters
container: BrushSpec  card background brush
content: ContentColors  semantic colors provided to card descendants
borderColor: Color  outline color, or transparent for a borderless card
Returns
CardColors

Properties

borderColor : Color
[Get]
outline color, or transparent for a borderless card
Signature
val borderColor: Color
container : BrushSpec
[Get]
card background brush
Signature
val container: BrushSpec
content : ContentColors
[Get]
semantic colors provided to card descendants
Signature
val content: ContentColors