---
title: "ChipColors"
description: "Represents the background and content colors used in a chip in different states.

See [ChipDefaults.primaryChipColors] for the default colors used in a primary styled [Chip]. See
[ChipDefaults.secondaryChipColors] for the default colors used in a secondary styled [Chip]."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>



```kotlin
public interface ChipColors
```


Represents the background and content colors used in a chip in different states.

See `ChipDefaults.primaryChipColors` for the default colors used in a primary styled `Chip`. See
`ChipDefaults.secondaryChipColors` for the default colors used in a secondary styled `Chip`.


## Functions

```kotlin
@Composable public fun background(enabled: Boolean): State<Painter>
```


Represents the background treatment for this chip, depending on `enabled`. Backgrounds can be
solid, transparent or have a gradient applied.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |



```kotlin
@Composable public fun contentColor(enabled: Boolean): State<Color>
```


Represents the content color for this chip, depending on `enabled`.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |



```kotlin
@Composable public fun secondaryContentColor(enabled: Boolean): State<Color>
```


Represents the secondary content color for this chip, depending on `enabled`.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |



```kotlin
@Composable public fun iconColor(enabled: Boolean): State<Color>
```


Represents the icon color for this chip, depending on `enabled`.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the chip is enabled |




