2.1.6 • Published 3 years ago
umi-plugin-antd-theme-ng v2.1.6
umi-plugin-antd-theme-ng
Usage
Configure in config/theme.config.json
,
{
"theme": [
{
"theme": "dark",
"fileName": "dark.css"
},
{
"fileName": "mingQing.css",
"modifyVars": {
"@primary-color": "#13C2C2"
}
}
],
// 是否压缩css
"min": true,
// css module
"isModule": true,
// 忽略 antd 的依赖
"ignoreAntd": false,
// 忽略 pro-layout
"ignoreProLayout": false,
// 不使用缓存
"cache": true
}
Configure in config/theme.config.js
,
const theme = {
"theme": [
{
"theme": "dark",
"fileName": "dark.css"
},
{
"fileName": "mingQing.css",
"modifyVars": {
"@primary-color": "#13C2C2"
}
}
],
// 是否压缩css
"min": true,
// css module
"isModule": true,
// 忽略 antd 的依赖
"ignoreAntd": false,
// 忽略 pro-layout
"ignoreProLayout": false,
// 不使用缓存
"cache": true
}
module.exports = theme;
you can get config in window.umi_plugin_ant_themeVar
LICENSE
MIT