---
title: "ImageCardDefaults"
description: "Default values used for [ImageCard]"
type: "object"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Android

```kotlin
public object ImageCardDefaults
```

Default values used for [ImageCard](/jetpack-compose/androidx.xr.glimmer/glimmer/components/ImageCard/api)

## Properties

### contentPadding

> Source set: Android

```kotlin
public val contentPadding: PaddingValues
```

Default content padding used for an [ImageCard](/jetpack-compose/androidx.xr.glimmer/glimmer/components/ImageCard/api)

This affects the outermost content padding applied around images and the content container.
Note that there is additional padding applied around the content / text / icons inside an
image card, this only represents the outer padding for the entire content.

### shape

> Source set: Android

```kotlin
public val shape: Shape
```

The default shape of [ImageCard](/jetpack-compose/androidx.xr.glimmer/glimmer/components/ImageCard/api), which determines its corner radius.

### color

> Source set: Android

```kotlin
public val color: Color
```

The default background color of [ImageCard](/jetpack-compose/androidx.xr.glimmer/glimmer/components/ImageCard/api).

## Functions

### contentColor

> Source set: Android

```kotlin
@Composable
    public fun contentColor(color: Color = ImageCardDefaults.color): Color
```

Calculates the default content color for an [ImageCard](/jetpack-compose/androidx.xr.glimmer/glimmer/components/ImageCard/api) based on the provided `color`.

#### Parameters

| | |
| --- | --- |
| color | the background color of the image card |

#### Return

the calculated content color
