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

```kotlin
public object ButtonDefaults
```

Contains the default values used by [Button](/jetpack-compose/androidx.glance/glance/composable-functions/Button).

## Functions

<h2 id="buttoncolors-backgroundcolor-contentcolor">buttonColors</h2>

```kotlin
@Composable

public fun buttonColors(
    backgroundColor: ColorProvider = GlanceTheme.colors.primary,
    contentColor: ColorProvider = GlanceTheme.colors.onPrimary,
): ButtonColors
```

Creates a [ButtonColors](/jetpack-compose/androidx.glance/glance/classes/ButtonColors) that represents the default background and content colors used in a
[Button](/jetpack-compose/androidx.glance/glance/composable-functions/Button).

#### Parameters

| | |
| --- | --- |
| backgroundColor | the background color of this [Button](/jetpack-compose/androidx.glance/glance/composable-functions/Button) |
| contentColor | the content color of this [Button](/jetpack-compose/androidx.glance/glance/composable-functions/Button) |