---
title: "RippleTheme"
description: "Defines the appearance for Ripples. You can define a new theme and apply it using
[LocalRippleTheme]. See [defaultRippleColor] and [defaultRippleAlpha] for default values that can
be used when creating your own [RippleTheme]."
type: "interface"
---

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


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

<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`. See `defaultRippleColor` and `defaultRippleAlpha` for default values that can
be used when creating your own `RippleTheme`.


## Functions

```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. |



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


#### Returns

| | |
| --- | --- |
|  | the `RippleAlpha` used to calculate the alpha for the ripple depending on the `Interaction` for a given component. This will be set as the alpha channel for `defaultColor` or the color explicitly provided to the ripple. |




