themeConfig.ts
1.73 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
56
57
58
59
60
61
import type { ThemeConfig } from 'antd';
// 品牌色板(稳重内敛 · 企业级)
export const brandDeep = '#0B1437'; // 墨蓝导航底(深色态)
export const brandGradient = 'linear-gradient(160deg, #0B1437 0%, #16245A 100%)'; // Sider / 登录品牌区
export const brandAccent = '#2B5CE6'; // 主操作蓝
export const themeConfig: ThemeConfig = {
cssVar: {},
token: {
colorPrimary: brandAccent,
colorLink: brandAccent,
colorLinkHover: '#4B75EA',
colorSuccess: '#16A34A',
colorWarning: '#D97706',
colorError: '#E5484D',
colorInfo: brandAccent,
colorBgLayout: '#F4F6FA',
colorBgContainer: '#FFFFFF',
colorBorderSecondary: '#E8ECF3',
colorBorder: '#E2E7EF',
colorText: '#1D2533',
colorTextHeading: '#1D2533',
colorTextDescription: '#4A5568',
colorTextSecondary: '#4A5568',
borderRadius: 8,
borderRadiusLG: 12,
controlHeight: 36,
fontSize: 14,
fontFamily:
"'PingFang', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif",
boxShadowSecondary: '0 6px 20px -8px rgba(16,24,40,.12)',
wireframe: false,
},
components: {
Layout: {
headerBg: '#FFFFFF',
headerHeight: 60,
headerPadding: '0 20px',
siderBg: 'transparent',
bodyBg: '#F4F6FA',
},
Menu: {
darkItemBg: 'transparent',
darkSubMenuItemBg: 'transparent',
darkItemSelectedBg: 'rgba(43,92,230,.22)',
darkItemSelectedColor: '#FFFFFF',
itemHeight: 44,
itemMarginInline: 8,
iconSize: 16,
},
Card: {
borderRadiusLG: 12,
},
Button: {
controlHeight: 36,
borderRadius: 8,
primaryShadow: '0 6px 16px -6px rgba(43,92,230,.5)',
},
},
};