DesignSystemTypography.fromTokens constructor
DesignSystemTypography.fromTokens(
- BrandTokens tokens
Implementation
factory DesignSystemTypography.fromTokens(BrandTokens tokens) {
final typography = tokens.typography;
return DesignSystemTypography(
display: typography.display.toTextStyle(),
headline: typography.headlineMedium.toTextStyle(),
title: typography.titleLarge.toTextStyle(),
body: typography.bodyMediumRegular.toTextStyle(),
label: typography.label.toTextStyle(),
button: typography.buttonSemiBold.toTextStyle(),
caption: typography.caption.toTextStyle(),
);
}