Foreground
class Foreground(val emphasized: Color, val moderate: Color, val subtle: Color, val neutral: Color, val brand: Color, val brandSoft: Color, val brandMedium: Color, val brandStrong: Color, val brandAccent: Color, val onBrand: Color, val onBrandSoft: Color, val onBrandMedium: Color, val onBrandStrong: Color, val onBrandAccent: Color, val success: Color, val warning: Color, val error: Color, val info: Color, val disabled: Color)
Foreground colors (text and icon tint).
Constructors
Link copied to clipboard
constructor(emphasized: Color, moderate: Color, subtle: Color, neutral: Color, brand: Color, brandSoft: Color, brandMedium: Color, brandStrong: Color, brandAccent: Color, onBrand: Color, onBrandSoft: Color, onBrandMedium: Color, onBrandStrong: Color, onBrandAccent: Color, success: Color, warning: Color, error: Color, info: Color, disabled: Color)
Properties
Link copied to clipboard
Accent foreground, for the one thing on screen that should catch the eye.
Link copied to clipboard
Brand foreground at its middle tone.
Link copied to clipboard
Brand foreground at its darkest tone — its lightest in a dark scheme — for text that needs to hold contrast on the page's surfaces.
Link copied to clipboard
Titles, body text and icons that carry the message. The highest-contrast foreground.
Link copied to clipboard
Content sitting on a filled control, such as a Buttons.primary button. The same color as the page background, so not for text on the page itself.
Link copied to clipboard
Content sitting on Surface.brand.
Link copied to clipboard
Content sitting on Surface.brandAccent.
Link copied to clipboard
Content sitting on Surface.brandMedium.
Link copied to clipboard
Content sitting on Surface.brandSoft.
Link copied to clipboard
Content sitting on Surface.brandStrong.