Theme generator cli tool for Element
npm install mui-theme> Theme generator cli tool for Element.

shell
npm i element-theme -D
`install
theme-default
`shell
npm i element-theme-default -D
or from github
npm i https://github.com/ElementUI/theme-default -D
`CLI
`shell
init variables file
et --init [file path]watch then build
et --watch [--config variable file path] [--out theme path]build
et [--config variable file path] [--out theme path] [--minimize]
`Node API
`javascript
var et = require('element-theme')// watch mode
et.watch({
config: 'variables/path',
out: 'output/path'
})
// build
et.run({
config: 'variables/path',
out: 'output/path',
minimize: true
})
`Options
$3
Variable file path, default ./element-variables.css.$3
Theme output path, default ./theme.$3
Compressed file.$3
set browsers, default ['ie > 9', 'last 2 versions'].$3
watch variable file changes then build.$3
A lists of components that you want to generate themes for. All by default.Config
You can configure some options in element-theme by putting it in package.json:
`json
{
"element-theme": {
"browsers": ["ie > 9", "last 2 versions"],
"out": "./theme",
"config": "./element-variables.css",
"theme": "element-theme-default",
"minimize": false,
"components": ["button", "input"]
}
}
``