Brand

interface Brand

Tokens related to your primary and secondary brand colors.

Types

Link copied to clipboard
object Companion

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

Properties

Link copied to clipboard
abstract val onPrimary: Color

Color for text and icons displayed on top of the primary color.

Link copied to clipboard

Color for text and icons placed on top of the primaryContainer color.

Link copied to clipboard
abstract val onSecondary: Color

Color for text and icons placed on top of the secondary color.

Link copied to clipboard

Color for text and icons placed on top of the secondaryContainer color.

Link copied to clipboard
abstract val primary: Color

The main brand color, used for key interactive elements like buttons, active states, and FABs.

Link copied to clipboard
abstract val primaryContainer: Color

A toned-down container color derived from the primary brand color. Used for components that need less emphasis than the primary color.

Link copied to clipboard
abstract val secondary: Color

The secondary brand color, used for less prominent components that still require some accent.

Link copied to clipboard

A toned-down container color derived from the secondary brand color.

Functions

Link copied to clipboard
fun ThemeColorTokens.Brand.copy(primary: Color = this.primary, onPrimary: Color = this.onPrimary, primaryContainer: Color = this.primaryContainer, onPrimaryContainer: Color = this.onPrimaryContainer, secondary: Color = this.secondary, onSecondary: Color = this.onSecondary, secondaryContainer: Color = this.secondaryContainer, onSecondaryContainer: Color = this.onSecondaryContainer): ThemeColorTokens.Brand

Copies this Brand replacing provided values.