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

> **Deprecated** RippleThemeDeprecationMessage

```kotlin
public interface RippleTheme
```

Defines the appearance for Ripples. You can define a new theme and apply it using
[LocalRippleTheme](/jetpack-compose/androidx.compose.material/material-ripple/properties/LocalRippleTheme). See `defaultRippleColor` and `defaultRippleAlpha` for default values that can
be used when creating your own [RippleTheme](/jetpack-compose/androidx.compose.material/material-ripple/interfaces/RippleTheme).

## Functions

<h2 id="defaultcolor">defaultColor</h2>

```kotlin
@Composable
    public fun defaultColor(): Color
```

#### Returns

| | |
| --- | --- |
|  | the default ripple color at the call site's position in the hierarchy. This color will be used when a color is not explicitly set in the ripple itself. |

<hr class="docs-overload-divider">

<h2 id="ripplealpha">rippleAlpha</h2>

```kotlin
@Composable
    public fun rippleAlpha(): RippleAlpha
```

#### Returns

| | |
| --- | --- |
|  | the [RippleAlpha](/jetpack-compose/androidx.compose.material/material-ripple/classes/RippleAlpha) used to calculate the alpha for the ripple depending on the [Interaction](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Interaction) for a given component. This will be set as the alpha channel for `defaultColor` or the color explicitly provided to the ripple. |