@metamask/design-system-react-native
Version:
29 lines • 1.32 kB
JavaScript
import { typography } from "@metamask/design-tokens";
import { FontWeight, TextVariant } from "../../types/index.mjs";
// Mappings
export const TWCLASSMAP_TEXT_FONTWEIGHT = {
[]: '-regular',
[]: '-medium',
[]: '-bold',
};
export const MAP_TEXT_VARIANT_FONTWEIGHT = {
[]: typography.sDisplayLG.fontWeight,
[]: typography.sDisplayMD.fontWeight,
[]: typography.sHeadingLG.fontWeight,
[]: typography.sHeadingMD.fontWeight,
[]: typography.sHeadingSM.fontWeight,
[]: typography.sBodyLGMedium.fontWeight,
[]: typography.sBodyMD.fontWeight,
[]: typography.sBodySM.fontWeight,
[]: typography.sBodyXS.fontWeight,
[]: typography.sPageHeading.fontWeight,
[]: typography.sSectionHeading
.fontWeight,
[]: typography.sButtonLabelMd
.fontWeight,
[]: typography.sButtonLabelLg
.fontWeight,
[]: typography.sAmountDisplayLg
.fontWeight,
};
//# sourceMappingURL=Text.constants.mjs.map