Surface

interface Surface

Tokens for the surface colors of the components.

Types

Link copied to clipboard
object Companion

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

Properties

Link copied to clipboard
abstract val container: Color

A more prominent surface color for containers that need to be clearly distinguished from the background.

Link copied to clipboard
abstract val default: Color

A surface color with the lowest or low emphasis, often used as a base for other elements. The neutral/100 color suggests a slightly off-white matching this role.

Link copied to clipboard
abstract val emphasis: Color

A background color that uses the primary brand color for emphasis, typically used for highlighted sections or key components.

Link copied to clipboard
abstract val subtle: Color

A very subtle background, often used for de-emphasized elements or large background areas that should be barely visible.

Link copied to clipboard
abstract val variant: Color

The default container color. Slightly more emphasized than the main surface.

Functions

Link copied to clipboard
fun ThemeColorTokens.Background.Surface.copy(default: Color = this.default, variant: Color = this.variant, container: Color = this.container, subtle: Color = this.subtle, emphasis: Color = this.emphasis): ThemeColorTokens.Background.Surface

Copies this Background.Surface replacing provided values.