$ npm install ant-design-crm-theme
import crmTheme from 'ant-design-crm-theme';
// webpack.config.js: less-loader
{
loader: 'less-loader',
options: {
modifyVars: crmTheme,
},
},
https://umijs.org/config/#theme
import crmTheme from 'ant-design-crm-theme';
// config.js or .umirc.js
export default {
"theme": crmTheme,
}
Use in Ant Design Pro: https://github.com/ant-design/ant-design-pro/pull/2946/
@import "~ant-design-crm-theme/index.less";