Background

interface Background

Tokens used for surfaces and backgrounds of the components.

Types

Link copied to clipboard
object Companion

Companion object for Background interface, provides a factory method for creating Background instances.

Link copied to clipboard
interface Surface

Tokens for the surface colors of the components.

Properties

Link copied to clipboard
abstract val default: Color

The default background color for the entire app or large surfaces like cards and sheets.

Link copied to clipboard
abstract val inverse: Color

A contrasting surface color used for elements that need to stand out, often for showing light content on a dark background and vice versa (e.g., Snackbars, Toasts).

Link copied to clipboard

Tokens for the surface colors of the components.

Functions

Link copied to clipboard
fun ThemeColorTokens.Background.copy(default: Color = this.default, inverse: Color = this.inverse, surface: ThemeColorTokens.Background.Surface = this.surface): ThemeColorTokens.Background

Copies this Background replacing provided values.