const fontFamilyBase = 'Roboto, "Helvetica Neue", Helvetica, Tahoma, Arial, "PingFang SC", "Microsoft YaHei"'; const fontSizeDisplay3 = 112; const fontSizeDisplay2 = 96; const fontSizeDisplay1 = 72; const fontSizeHeadline = 48; const fontSizeTitle = 40; const fontSizeSubhead = 32; const fontSizeBody2 = 30; const fontSizeBody1 = 28; const fontSizeCaption = 24; const fontSizeFootnote = 20; const fontWeight1 = 100; const fontWeight2 = 200; const fontWeight3 = 300; const fontWeight4 = 400; const fontWeight5 = 500; const fontWeight6 = 600; const fontWeight7 = 700; const fontWeight8 = 800; const fontWeight9 = 900; const fontLineHeight1 = 1.3; const fontLineHeight2 = 1.4; const fontLineHeight3 = 1.5; /** * 字体 * @namespace component * @property module font * @property category style */ const fontMap = { /** * family * @property group default * @property semantic 字体 * @property export */ 'font-family-base': fontFamilyBase, /** * display-3 * @property group size * @property semantic 运营标题-大 * @property export size */ 'font-size-display-3': fontSizeDisplay3, /** * display-2 * @property group size * @property semantic 运营标题-中 * @property export size */ 'font-size-display-2': fontSizeDisplay2, /** * display-1 * @property group size * @property semantic 运营标题-小 * @property export size */ 'font-size-display-1': fontSizeDisplay1, /** * headline * @property group size * @property semantic 标题-大 * @property export size */ 'font-size-headline': fontSizeHeadline, /** * title * @property group size * @property semantic 标题-中 * @property export size */ 'font-size-title': fontSizeTitle, /** * subhead * @property group size * @property semantic 标题-小 * @property export size */ 'font-size-subhead': fontSizeSubhead, /** * body-2 * @property group size * @property semantic 正文-强调 * @property export size */ 'font-size-body-2': fontSizeBody2, /** * body-1 * @property group size * @property semantic 正文-常规 * @property export size */ 'font-size-body-1': fontSizeBody1, /** * caption * @property group size * @property semantic 水印文本 * @property export size */ 'font-size-caption': fontSizeCaption, /** * footnote * @property group size * @property semantic 水印文本 * @property export size */ 'font-size-footnote': fontSizeFootnote, /** * Ultra light * @property group weight * @property semantic 超细 * @property export weightcore */ 'font-weight-1': fontWeight1, /** * Extra Light * @property group weight * @property semantic 特细 * @property export weightcore */ 'font-weight-2': fontWeight2, /** * Light * @property group weight * @property semantic 细体 * @property export weightcore */ 'font-weight-3': fontWeight3, /** * Normal * @property group weight * @property semantic 常规 * @property export weightcore */ 'font-weight-4': fontWeight4, /** * Medium * @property group weight * @property semantic 中黑 * @property export weightcore */ 'font-weight-5': fontWeight5, /** * Semi Bold * @property group weight * @property semantic 中粗 * @property export weightcore */ 'font-weight-6': fontWeight6, /** * Bold * @property group weight * @property semantic 粗体 * @property export weightcore */ 'font-weight-7': fontWeight7, /** * Extra Bold * @property group weight * @property semantic 特黑 * @property export weightcore */ 'font-weight-8': fontWeight8, /** * Ultra Bold * @property group weight * @property semantic 黑体 * @property export weightcore */ 'font-weight-9': fontWeight9, /** * lineheight-1 * @property group lineheight * @property semantic 密集 * @property export lineheight */ 'font-lineheight-1': fontLineHeight1, /** * lineheight-2 * @property group lineheight * @property semantic 常规 * @property export lineheight */ 'font-lineheight-2': fontLineHeight2, /** * lineheight-3 * @property group lineheight * @property semantic 宽松 * @property export lineheight */ 'font-lineheight-3': fontLineHeight3, }; export default fontMap;