diff --git a/config/config.js b/config/config.js index 8008ef4cce8df03562679fa15fc817017bc1158d..2604cc2b198020987e27d9ca07d7ddcdba397d3e 100644 --- a/config/config.js +++ b/config/config.js @@ -1,6 +1,7 @@ // https://umijs.org/config/ const pageRoutes = require('./router.config'); const webpackplugin = require('./plugin.config'); +const defaultSetting = require('../src/defaultSetting'); export default { // add for transfer to umi @@ -30,9 +31,9 @@ export default { ], // 路由配置 routes: pageRoutes, - + // theme for antd theme: { - 'card-actions-background': '#f5f8fa', + 'primary-color': defaultSetting.primaryColor, }, externals: { '@antv/data-set': 'DataSet', diff --git a/src/defaultSetting.js b/src/defaultSetting.js index 8d7aefd6ffb961dcfaf85f0b6cfe3ba067d32a0e..8873d6a3bc43a2bd27b3e1f83b585e7345de5975 100644 --- a/src/defaultSetting.js +++ b/src/defaultSetting.js @@ -1,4 +1,4 @@ -export default { +module.exports = { collapse: false, silderTheme: 'dark', primaryColor: '#1890FF',