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

```kotlin
object CheckboxDefaults
```

Defaults used in [Checkbox](/jetpack-compose/androidx.compose.material/material/components/Checkbox) and [TriStateCheckbox](/jetpack-compose/androidx.compose.material/material/components/TriStateCheckbox).

## Functions

<h2 id="colors-checkedcolor-uncheckedcolor-checkmarkcolor-disabledcolor-disabledindeterminatecolor">colors</h2>

```kotlin
@Composable
    fun colors(
        checkedColor: Color = MaterialTheme.colors.secondary,
        uncheckedColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
        checkmarkColor: Color = MaterialTheme.colors.surface,
        disabledColor: Color = MaterialTheme.colors.onSurface.copy(alpha = ContentAlpha.disabled),
        disabledIndeterminateColor: Color = checkedColor.copy(alpha = ContentAlpha.disabled),
    ): CheckboxColors
```

Creates a [CheckboxColors](/jetpack-compose/androidx.compose.material/material/interfaces/CheckboxColors) that will animate between the provided colors according to the
Material specification.

#### Parameters

| | |
| --- | --- |
| checkedColor | the color that will be used for the border and box when checked |
| uncheckedColor | color that will be used for the border when unchecked |
| checkmarkColor | color that will be used for the checkmark when checked |
| disabledColor | color that will be used for the box and border when disabled |
| disabledIndeterminateColor | color that will be used for the box and border in a [TriStateCheckbox](/jetpack-compose/androidx.compose.material/material/components/TriStateCheckbox) when disabled AND in an [ToggleableState.Indeterminate](/jetpack-compose/androidx.compose.ui/ui/classes/ToggleableState.Indeterminate) state. |