1.0.0-beta.1 • Published 3 years ago

element-plus-custom-theme v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

中文

element-plus-custom-theme

A simple element-plus theme customization tool.

This tool can be used before the official update of the theme customization tool.

install

element-plus must be installed, the tool will use the theme-chalk code to generate new theme variables:

npm i -S element-plus
npm i -g element-plus-custom-theme

It can also be installed in the project, but you need to execute the command line through scripts:

npm i -D element-plus-custom-theme

usage

epct src/theme/config.json -o src/theme/custom-theme/

element-plus has added many scss variables, you can use multiple config.json files to customize the theme:

epct src/theme/config.json src/theme/config-plus.json -o src/theme/custom-theme

If installed in the project, you can use the scripts in the package.json:

{
  "scripts": {
    "build:theme": "epct src/theme/config.json -o src/theme/custom-theme/"
  }
}
npm run build:theme