theme.ts
1.28 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 type { ThemeConfig } from "antd";
export const antdTheme: ThemeConfig = {
token: {
colorPrimary: "#3a8ee0",
colorPrimaryHover: "#2776c6",
colorBgLayout: "#f3f5f8",
colorBorder: "#dce1e8",
colorText: "#2a3142",
colorTextSecondary: "#6b7280",
colorError: "#d04141",
colorWarning: "#d98e1f",
colorSuccess: "#27a567",
borderRadius: 0,
controlHeight: 26,
controlHeightSM: 22,
fontSize: 13,
fontFamily:
'"Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif',
},
components: {
Table: {
cellPaddingBlock: 4,
cellPaddingInline: 8,
headerBg: "#fafbfc",
headerColor: "#2a3142",
rowHoverBg: "#eaf4fc",
rowSelectedBg: "#d4e8f7",
rowSelectedHoverBg: "#d4e8f7",
borderColor: "#dce1e8",
headerBorderRadius: 0,
},
Button: {
controlHeight: 26,
paddingContentHorizontal: 10,
},
Input: {
controlHeight: 26,
},
Select: {
controlHeight: 26,
},
Form: {
itemMarginBottom: 6,
verticalLabelPadding: "0 0 2px",
labelFontSize: 12,
},
Tabs: {
itemColor: "#2a3142",
itemSelectedColor: "#2776c6",
itemHoverColor: "#3a8ee0",
inkBarColor: "#3a8ee0",
},
},
};