# 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)

*** ** * ** ***


```
public static class CardDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledCardColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card representing the primary, most important or most common action on a screen. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalCardColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` for the medium-emphasis card. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantCardColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` Alternative `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` for the high-emphasis card. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).imageBackgroundCardColors()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope receiver)` Alternative `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` for the card with `https://developer.android.com/reference/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 fields

### INSTANCE

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static @NonNull CardDefaults INSTANCE
```

## Public methods

### filledCardColors

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public final @NonNull CardColors filledCardColors(@NonNull MaterialScope receiver)
```

`https://developer.android.com/reference/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/androidx/wear/protolayout/material3/ColorScheme#primary()` for background color and `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme#onPrimary()` for content colors from the given `https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme`.

### filledTonalCardColors

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public final @NonNull CardColors filledTonalCardColors(@NonNull MaterialScope receiver)
```

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

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

### filledVariantCardColors

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public final @NonNull CardColors filledVariantCardColors(@NonNull MaterialScope receiver)
```

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

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

### imageBackgroundCardColors

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public final @NonNull CardColors imageBackgroundCardColors(@NonNull MaterialScope receiver)
```

Alternative `https://developer.android.com/reference/androidx/wear/protolayout/material3/CardColors` for the card with `https://developer.android.com/reference/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/androidx/wear/protolayout/material3/ColorScheme#onBackground()` for content colors from the given `https://developer.android.com/reference/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/androidx/wear/protolayout/material3/ColorScheme`.