ToneDeltaPair

Documents a constraint between two DynamicColors, in which their tones must have a certain distance from each other.

Prefer a DynamicColor with a background, this is for special cases when designers want tonal distance, literally contrast, between two colors that don't have a background / foreground relationship or a contrast guarantee.

Constructors

Link copied to clipboard
constructor(@NonNull roleA: DynamicColor, @NonNull roleB: DynamicColor, delta: Double, @NonNull polarity: TonePolarity, stayTogether: Boolean)
Documents a constraint in tone distance between two DynamicColors.

Properties

Link copied to clipboard
Required difference between tones.
Link copied to clipboard
The relative relation between tones of roleA and roleB, as described above.
Link copied to clipboard
The first role in a pair.
Link copied to clipboard
The second role in a pair.
Link copied to clipboard
Whether these two roles should stay on the same side of the "awkward zone" (T50-59).