Palette

@Immutable
class Palette(val canvas: Color, val surface: Color, val hairline: Color, val control: Color, val text: Color, val muted: Color, val accent: Color, val accentText: Color, val accentTint: Color, val warn: Color, val warnText: Color, val danger: Color)(source)

Colors of one theme; every text color is checked against its backgrounds in a test.

Constructors

Link copied to clipboard
constructor(canvas: Color, surface: Color, hairline: Color, control: Color, text: Color, muted: Color, accent: Color, accentText: Color, accentTint: Color, warn: Color, warnText: Color, danger: Color)

Properties

Link copied to clipboard
val accent: Color
Link copied to clipboard
val accentText: Color
Link copied to clipboard
val accentTint: Color
Link copied to clipboard
val canvas: Color
Link copied to clipboard
val control: Color
Link copied to clipboard
val danger: Color
Link copied to clipboard
val graphicPairs: List<Pair<Color, Color>>

Pairs that draw a meaningful edge or mark; each needs a 3 to 1 ratio.

Link copied to clipboard
val hairline: Color
Link copied to clipboard
val muted: Color
Link copied to clipboard
val surface: Color
Link copied to clipboard
val text: Color
Link copied to clipboard
val textPairs: List<Pair<Color, Color>>

Foreground and background pairs that carry text; each needs a 4.5 to 1 ratio.

Link copied to clipboard
val warn: Color
Link copied to clipboard
val warnText: Color