forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlight.ts
More file actions
55 lines (51 loc) · 1.27 KB
/
Copy pathlight.ts
File metadata and controls
55 lines (51 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { theme } from 'antd';
import { PrimaryColorType } from '@/constants';
import { commonToken } from '../common';
type IAntdPrimaryColor = {
[key in PrimaryColorType]: any;
};
// 主题色
const antdPrimaryColor: IAntdPrimaryColor = {
[PrimaryColorType.Polar_Green]: {
colorPrimary: '#039e74',
},
[PrimaryColorType.Golden_Purple]: {
colorPrimary: '#9373ee',
},
[PrimaryColorType.Polar_Blue]: {
colorPrimary: '#587df1',
},
[PrimaryColorType.Silver]: {
colorPrimary: '#8e8374',
},
[PrimaryColorType.Red]: {
colorPrimary: '#fd6874',
},
[PrimaryColorType.Orange]: {
colorPrimary: '#fa8c16',
},
[PrimaryColorType.Blue2]: {
colorPrimary: '#00c3ee',
},
[PrimaryColorType.Gold]: {
colorPrimary: '#9a7d56',
},
};
const antdLightTheme = {
algorithm: [theme.defaultAlgorithm, theme.compactAlgorithm],
customName: 'light',
antdPrimaryColor,
token: {
...commonToken,
// colorText: "#232429",
colorTextBase: '#232429',
colorBgBase: '#ffffff',
colorHoverBg: 'rgba(0, 0, 0, 0.03)',
colorBgContainer: '#ffffff',
colorBgSubtle: '#f6f8fa',
colorBgElevated: '#ffffff',
colorBorder: 'rgba(211, 211, 212, 0.4)',
colorBorderSecondary: 'rgba(211, 211, 212, 0.4)',
},
};
export default antdLightTheme;