object CardDefaults


Summary

Public functions

CardColors

CardColors for the high-emphasis card representing the primary, most important or most common action on a screen.

CardColors

CardColors for the medium-emphasis card.

CardColors

Alternative CardColors for the high-emphasis card.

CardColors

Alternative CardColors for the card with backgroundImage as a background.

Public functions

fun MaterialScope.filledCardColors(): CardColors

CardColors for the high-emphasis card representing the primary, most important or most common action on a screen.

These colors are using ColorScheme.primary for background color and ColorScheme.onPrimary for content colors.

fun MaterialScope.filledTonalCardColors(): CardColors

CardColors for the medium-emphasis card.

These colors are using ColorScheme.surfaceContainer for background color and ColorScheme.onSurface and ColorScheme.onSurfaceVariant for content colors.

fun MaterialScope.filledVariantCardColors(): CardColors

Alternative CardColors for the high-emphasis card.

These colors are using ColorScheme.primaryContainer for background color and ColorScheme.primaryContainer for content colors.

imageBackgroundCardColors

fun MaterialScope.imageBackgroundCardColors(): CardColors

Alternative CardColors for the card with backgroundImage as a background.

These colors are using ColorScheme.onBackground for content colors.