resolve method

KiteTypography resolve(
  1. KiteColors colors
)

Applies semantic Kite colors while preserving typography metrics.

Implementation

KiteTypography resolve(KiteColors colors) {
  return copyWith(
    display: display.copyWith(color: colors.textPrimary),
    heading: heading.copyWith(color: colors.textPrimary),
    section: section.copyWith(color: colors.textPrimary),
    title: title.copyWith(color: colors.textPrimary),
    lead: lead.copyWith(color: colors.textSecondary),
    body: body.copyWith(color: colors.textPrimary),
    paragraph: paragraph.copyWith(color: colors.textSecondary),
    label: label.copyWith(color: colors.textPrimary),
    labelSmall: labelSmall.copyWith(color: colors.textSecondary),
    caption: caption.copyWith(color: colors.textSecondary),
  );
}