cardColors

@Composable
fun cardColors(): CardColors

Creates a CardColors that represents the default container and content colors used in a Card.


@Composable
fun cardColors(containerColor: Color = Color.Unspecified, contentColor: Color = contentColorFor(containerColor), disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(DisabledAlpha)): CardColors

Creates a CardColors that represents the default container and content colors used in a Card.

Parameters

containerColor

the container color of this Card when enabled.

contentColor

the content color of this Card when enabled.

disabledContainerColor

the container color of this Card when not enabled.

disabledContentColor

the content color of this Card when not enabled.