-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-overrides.js
29 lines (28 loc) · 1023 Bytes
/
config-overrides.js
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
const { override, fixBabelImports, addLessLoader } = require('customize-cra');
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
'@primary-color': '#91EE16',
'@secondary-color': 'rgb(0, 21, 41)',
'@link-color': '#91EE16',
'@success-color': '#52c41a',
'@warning-color': '#faad14',
'@error-color': '#f5222d',
'@font-size-base': '14px',
'@heading-color': 'rgba(0, 0, 0, 0.85)',
'@text-color': 'rgba(0, 0, 0, 0.65)',
'@text-color-secondary': 'rgba(0, 0, 0, 0.45)',
'@disabled-color': 'rgba(0, 0, 0, 0.25)',
'@border-radius-base': '4px',
'@border-color-base': '#d9d9d9',
'@box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)',
'@sub-color': 'rgb(0, 21, 41)'
}
})
)