xref: /MusicFree/src/constants/uiConst.ts (revision fe32deaa67e69870228108e3ac35afbeeeef61d4)
1import rpx from '@/utils/rpx';
2
3const fontSizeConst = {
4    /** 标签 */
5    tag: rpx(20),
6    /** 描述文本等字体 */
7    description: rpx(22),
8    /** 副标题 */
9    subTitle: rpx(26),
10    /** 正文字体 */
11    content: rpx(28),
12    /** 标题字体 */
13    title: rpx(32),
14    /** appbar的字体 */
15    appbar: rpx(36),
16};
17
18const fontWeightConst = {
19    regular: '400',
20    medium: '500',
21    semibold: '600',
22    bold: '700',
23    bolder: '800',
24} as const;
25
26const iconSizeConst = {
27    small: rpx(32),
28    light: rpx(40),
29    normal: rpx(48),
30    big: rpx(64),
31};
32
33type ColorKey = 'normal' | 'secondary' | 'highlight' | 'headerText';
34const colorMap: Record<ColorKey, string> = {
35    normal: 'text',
36    secondary: 'textSecondary',
37    highlight: 'textHighlight',
38    headerText: 'headerText',
39} as const;
40
41export {fontSizeConst, fontWeightConst, iconSizeConst, colorMap};
42export type {ColorKey};
43