Surface

class Surface(val primary: Color, val secondary: Color, val tertiary: Color, val brand: Color, val brandSoft: Color, val brandMedium: Color, val brandStrong: Color, val brandAccent: Color, val success: Color, val error: Color, val warning: Color, val info: Color)

Surface colors (cards, containers, buttons-as-surface).

Constructors

Link copied to clipboard
constructor(primary: Color, secondary: Color, tertiary: Color, brand: Color, brandSoft: Color, brandMedium: Color, brandStrong: Color, brandAccent: Color, success: Color, error: Color, warning: Color, info: Color)

Properties

Link copied to clipboard

A brand-coloured container. Put Foreground.onBrand on it.

Link copied to clipboard

Accent container. Put Foreground.onBrandAccent on it.

Link copied to clipboard

Brand container at its middle tone. Put Foreground.onBrandMedium on it.

Link copied to clipboard

Brand container at its lightest tone. Put Foreground.onBrandSoft on it.

Link copied to clipboard

Brand container at its darkest tone. Put Foreground.onBrandStrong on it.

Link copied to clipboard

Container of an error message or banner.

Link copied to clipboard
val info: Color

Container of an informational message or banner.

Link copied to clipboard

The default container: cards, cells, list rows.

Link copied to clipboard

A container that should read as one level below primary.

Link copied to clipboard

Container of a success message or banner.

Link copied to clipboard

A container one level below secondary again — a thumbnail placeholder, an inset block.

Link copied to clipboard

Container of a warning message or banner.