xref: /MusicFree/src/constants/uiConst.ts (revision 6704747af84cebd842b258efac7143542722fac5)
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
25} as const;
26
27const iconSizeConst = {
28  small: rpx(32),
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
40
41export {fontSizeConst, fontWeightConst, iconSizeConst, colorMap};
42export type {ColorKey};