<div class='sourceset sourceset-common'>Common</div>

```kotlin
object CardDefaults
```

Contains the default values used by all card types.

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val shape: Shape
```

Default shape for a card.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val elevatedShape: Shape
```

Default shape for an elevated card.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val outlinedShape: Shape
```

Default shape for an outlined card.

## Functions

<h2 id="cardelevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation-draggedelevation-disabledelevation">cardElevation</h2>

```kotlin
@Composable
    fun cardElevation(
        defaultElevation: Dp = FilledCardTokens.ContainerElevation,
        pressedElevation: Dp = FilledCardTokens.PressedContainerElevation,
        focusedElevation: Dp = FilledCardTokens.FocusContainerElevation,
        hoveredElevation: Dp = FilledCardTokens.HoverContainerElevation,
        draggedElevation: Dp = FilledCardTokens.DraggedContainerElevation,
        disabledElevation: Dp = FilledCardTokens.DisabledContainerElevation,
    ): CardElevation
```

Creates a [CardElevation](/jetpack-compose/androidx.compose.material3/material3/classes/CardElevation) that will animate between the provided values according to the
Material specification for a [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card).

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is pressed. |
| focusedElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is focused. |
| hoveredElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is hovered. |
| draggedElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is dragged. |
| disabledElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is disabled. |

<hr class="docs-overload-divider">

<h2 id="elevatedcardelevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation-draggedelevation-disabledelevation">elevatedCardElevation</h2>

```kotlin
@Composable
    fun elevatedCardElevation(
        defaultElevation: Dp = ElevatedCardTokens.ContainerElevation,
        pressedElevation: Dp = ElevatedCardTokens.PressedContainerElevation,
        focusedElevation: Dp = ElevatedCardTokens.FocusContainerElevation,
        hoveredElevation: Dp = ElevatedCardTokens.HoverContainerElevation,
        draggedElevation: Dp = ElevatedCardTokens.DraggedContainerElevation,
        disabledElevation: Dp = ElevatedCardTokens.DisabledContainerElevation,
    ): CardElevation
```

Creates a [CardElevation](/jetpack-compose/androidx.compose.material3/material3/classes/CardElevation) that will animate between the provided values according to the
Material specification for an [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard).

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) is has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) is pressed. |
| focusedElevation | the elevation used when the [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) is focused. |
| hoveredElevation | the elevation used when the [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) is hovered. |
| draggedElevation | the elevation used when the [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) is dragged. |
| disabledElevation | the elevation used when the [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) is disabled. |

<hr class="docs-overload-divider">

<h2 id="outlinedcardelevation-defaultelevation-pressedelevation-focusedelevation-hoveredelevation-draggedelevation-disabledelevation">outlinedCardElevation</h2>

```kotlin
@Composable
    fun outlinedCardElevation(
        defaultElevation: Dp = OutlinedCardTokens.ContainerElevation,
        pressedElevation: Dp = defaultElevation,
        focusedElevation: Dp = defaultElevation,
        hoveredElevation: Dp = defaultElevation,
        draggedElevation: Dp = OutlinedCardTokens.DraggedContainerElevation,
        disabledElevation: Dp = OutlinedCardTokens.DisabledContainerElevation,
    ): CardElevation
```

Creates a [CardElevation](/jetpack-compose/androidx.compose.material3/material3/classes/CardElevation) that will animate between the provided values according to the
Material specification for an [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard).

#### Parameters

| | |
| --- | --- |
| defaultElevation | the elevation used when the [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) is has no other [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction)s. |
| pressedElevation | the elevation used when the [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) is pressed. |
| focusedElevation | the elevation used when the [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) is focused. |
| hoveredElevation | the elevation used when the [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) is hovered. |
| draggedElevation | the elevation used when the [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) is dragged. |

```kotlin
@Composable fun cardColors() = MaterialTheme.colorScheme.defaultCardColors
```

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in a
[Card](/jetpack-compose/androidx.compose.material3/material3/components/Card).

<hr class="docs-overload-divider">

<h2 id="cardcolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">cardColors</h2>

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

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in a
[Card](/jetpack-compose/androidx.compose.material3/material3/components/Card).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) when enabled. |
| contentColor | the content color of this [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) when enabled. |
| disabledContainerColor | the container color of this [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) when not enabled. |
| disabledContentColor | the content color of this [Card](/jetpack-compose/androidx.compose.material3/material3/components/Card) when not enabled. |

```kotlin
@Composable fun elevatedCardColors() = MaterialTheme.colorScheme.defaultElevatedCardColors
```

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in an
[ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard).

<hr class="docs-overload-divider">

<h2 id="elevatedcardcolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">elevatedCardColors</h2>

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

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in an
[ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) when enabled. |
| contentColor | the content color of this [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) when enabled. |
| disabledContainerColor | the container color of this [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) when not enabled. |
| disabledContentColor | the content color of this [ElevatedCard](/jetpack-compose/androidx.compose.material3/material3/components/ElevatedCard) when not enabled. |

```kotlin
@Composable fun outlinedCardColors() = MaterialTheme.colorScheme.defaultOutlinedCardColors
```

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in an
[OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard).

<hr class="docs-overload-divider">

<h2 id="outlinedcardcolors-containercolor-contentcolor-disabledcontainercolor-disabledcontentcolor">outlinedCardColors</h2>

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

Creates a [CardColors](/jetpack-compose/androidx.compose.material3/material3/classes/CardColors) that represents the default container and content colors used in an
[OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard).

#### Parameters

| | |
| --- | --- |
| containerColor | the container color of this [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) when enabled. |
| contentColor | the content color of this [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) when enabled. |
| disabledContainerColor | the container color of this [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) when not enabled. |
| disabledContentColor | the content color of this [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard) when not enabled. |

<hr class="docs-overload-divider">

<h2 id="outlinedcardborder-enabled">outlinedCardBorder</h2>

```kotlin
@Composable
    fun outlinedCardBorder(enabled: Boolean = true): BorderStroke
```

Creates a [BorderStroke](/jetpack-compose/androidx.compose.foundation/foundation/classes/BorderStroke) that represents the default border used in [OutlinedCard](/jetpack-compose/androidx.compose.material3/material3/components/OutlinedCard).

#### Parameters

| | |
| --- | --- |
| enabled | whether the card is enabled |