pub fn colours(tokens: &Tokens, pressed: bool, status: Status) -> ColoursAvailable on crate feature
toggle only.Expand description
Resolves the colours of a toggle. Off, it is muted and takes a fill halfway to the accent on hover, keeping its muted text; on, it takes the accent with full-strength text and darkens a little on hover, so a hovered toggle never looks pressed.