umi-plugin-antd-theme-g
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

umi-plugin-antd-theme-g

umi less主题切换插件(改)

Install

  • yarn add umi-plugin-antd-theme-g

config/config.ts

  antdTheme:{
    themeVariables: ['@brand-primary','@abcd-efg'],
  }
Property Type Default Descript
antDir string - This is path to antd directory in your node_modules
varFile string - Path to your theme related variables file
themeVariables array ['@primary-color'] List of variables that you want to dynamically change
generateOnce boolean false Everytime webpack will build new code due to some code changes in development, this plugin will run again unless you specify this flag as true which will just compile your styles once
lessScript boolean true Whether to load the less.mins file
outputFileName string color.less less var file name

参考: https://github.com/alitajs/plugin-theme

Readme

Keywords

Package Sidebar

Install

npm i umi-plugin-antd-theme-g

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

236 kB

Total Files

5

Last publish

Collaborators

  • wecliang