umi-plugin-antd-theme

2.1.3 • Public • Published

umi-plugin-antd-theme

NPM version NPM downloads

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
}

you can get config in window.umi_plugin_ant_themeVar

LICENSE

MIT

/umi-plugin-antd-theme/

    Package Sidebar

    Install

    npm i umi-plugin-antd-theme

    Weekly Downloads

    140

    Version

    2.1.3

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • chenshuai2144