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

See [ButtonDefaults.primaryButtonColors] for the default colors used in a primary styled
[Button]. See [ButtonDefaults.secondaryButtonColors] for the default colors used in a secondary
styled [Button]."
type: "interface"
---

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


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

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



```kotlin
public interface ButtonColors
```


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

See `ButtonDefaults.primaryButtonColors` for the default colors used in a primary styled
`Button`. See `ButtonDefaults.secondaryButtonColors` for the default colors used in a secondary
styled `Button`.


## Functions

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


Represents the background color for this button, depending on `enabled`.

#### Parameters

| | |
| --- | --- |
| enabled | whether the button is enabled |



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


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

#### Parameters

| | |
| --- | --- |
| enabled | whether the button is enabled |




