# CardDefaults

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CardDefaults.kt+class:androidx.wear.protolayout.material3.CardDefaults) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


```
object CardDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledCardColors()()` `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card representing the primary, most important or most common action on a screen. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalCardColors()()` `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the medium-emphasis card. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantCardColors()()` Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).imageBackgroundCardColors()()` Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/package-summary#(androidx.wear.protolayout.material3.MaterialScope).backgroundImage(androidx.wear.protolayout.ResourceBuilders.ImageResource,kotlin.String,androidx.wear.protolayout.modifiers.LayoutModifier,androidx.wear.protolayout.DimensionBuilders.ImageDimension,androidx.wear.protolayout.DimensionBuilders.ImageDimension,androidx.wear.protolayout.types.LayoutColor,kotlin.Int)` as a background. |

## Public functions

### MaterialScope.filledCardColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CardDefaults.kt+function:filledCardColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledCardColors(): CardColors
```

`https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card representing the primary, most important or most common action on a screen.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primary()` for background color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onPrimary()` for content colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledTonalCardColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CardDefaults.kt+function:filledTonalCardColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledTonalCardColors(): CardColors
```

`https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the medium-emphasis card.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#surfaceContainer()` for background color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onSurface()` and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onSurfaceVariant()` for content colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledVariantCardColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CardDefaults.kt+function:filledVariantCardColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledVariantCardColors(): CardColors
```

Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primaryContainer()` for background color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primaryContainer()` for content colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.imageBackgroundCardColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CardDefaults.kt+function:imageBackgroundCardColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.imageBackgroundCardColors(): CardColors
```

Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardColors` for the card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/package-summary#(androidx.wear.protolayout.material3.MaterialScope).backgroundImage(androidx.wear.protolayout.ResourceBuilders.ImageResource,kotlin.String,androidx.wear.protolayout.modifiers.LayoutModifier,androidx.wear.protolayout.DimensionBuilders.ImageDimension,androidx.wear.protolayout.DimensionBuilders.ImageDimension,androidx.wear.protolayout.types.LayoutColor,kotlin.Int)` as a background.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onBackground()` for content colors from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.