https://github.com/chenshuai2144/umi-plugin-antd-theme
🎨 Best theme plugin
https://github.com/chenshuai2144/umi-plugin-antd-theme
ant-design ant-design-pro antd antdpro theme umi
Last synced: about 1 year ago
JSON representation
🎨 Best theme plugin
- Host: GitHub
- URL: https://github.com/chenshuai2144/umi-plugin-antd-theme
- Owner: chenshuai2144
- License: mit
- Created: 2019-09-18T04:20:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T08:09:09.000Z (over 4 years ago)
- Last Synced: 2025-03-29T01:41:28.415Z (about 1 year ago)
- Topics: ant-design, ant-design-pro, antd, antdpro, theme, umi
- Language: TypeScript
- Homepage: https://preview.pro.ant.design/
- Size: 45.9 KB
- Stars: 85
- Watchers: 1
- Forks: 30
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# umi-plugin-antd-theme
[](https://npmjs.org/package/umi-plugin-antd-theme) [](https://npmjs.org/package/umi-plugin-antd-theme)
## Usage
Configure in `config/theme.config.json`,
```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
}
```
you can get config in `window.umi_plugin_ant_themeVar`
## LICENSE
MIT