xref: /MusicFree/src/constants/uiConst.ts (revision b882a19d884fffa32f7c8cef31652b909dceaa0f)
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    normal: rpx(48),
29    big: rpx(64),
30};
31
32type ColorKey = 'normal' | 'secondary' | 'highlight';
33const colorMap: Record<ColorKey, keyof ReactNativePaper.ThemeColors> = {
34    normal: 'text',
35    secondary: 'textSecondary',
36    highlight: 'textHighlight',
37} as const;
38
39export {fontSizeConst, fontWeightConst, iconSizeConst, colorMap};
40export type {ColorKey};
41