forked from OtterMind/Chat2DB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdark.ts
More file actions
54 lines (50 loc) · 1.21 KB
/
Copy pathdark.ts
File metadata and controls
54 lines (50 loc) · 1.21 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
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: '#3c8618',
},
[PrimaryColorType.Golden_Purple]: {
colorPrimary: '#7688c9',
},
[PrimaryColorType.Polar_Blue]: {
colorPrimary: '#1677ff',
},
[PrimaryColorType.Silver]: {
colorPrimary: '#c3b7a4',
},
[PrimaryColorType.Red]: {
colorPrimary: '#fd6874',
},
[PrimaryColorType.Orange]: {
colorPrimary: '#ffa940',
},
[PrimaryColorType.Blue2]: {
colorPrimary: '#009cc7',
},
[PrimaryColorType.Gold]: {
colorPrimary: '#b59a6d',
},
};
const antDarkTheme = {
algorithm: [theme.darkAlgorithm, theme.compactAlgorithm],
customName: 'dark',
antdPrimaryColor,
token: {
...commonToken,
colorTextBase: '#f1f1f4',
colorBgBase: '#0a0b0c',
colorHoverBg: 'hsla(0, 0%, 100%, 0.03)',
colorBgContainer: '#0a0b0c',
colorBgSubtle: '#131418',
colorBgElevated: '#0a0b0c',
colorBorder: '#36373a66',
colorBorderSecondary: '#36373a66',
},
};
export default antDarkTheme;