forked from LemonUnit/csv-editor-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
27 lines (26 loc) · 1.1 KB
/
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
const { override, fixBabelImports, addLessLoader } = require('customize-cra');
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
'@primary-color': '#1890ff', // primary color for all components
'@link-color': '#1890ff', // link color
'@success-color': '#52c41a', // success state color
'@warning-color': '#faad14', // warning state color
'@error-color': '#f5222d', // error state color
'@font-size-base': '18px', // major text font size
'@heading-color': 'rgba(0, 0, 0, 0.85)', // heading text color
'@text-color': 'rgba(0, 0, 0, 0.65)', // major text color
'@text-color-secondary': 'rgba(0, 0, 0, .45)', // secondary text color
'@disabled-color': 'rgba(0, 0, 0, .25)', // disable state color
'@border-radius-base': '3px', // major border radius
'@border-color-base': '#d9d9d9', // major border color
'@box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)' // major shadow for layers
},
}),
);