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