// src/common/var.scss
$--color-primary: red;
$ gulp
- Copy the
lib/index.css, lib/fonts
to your project, and import thelib/index.css
.
-
Copy the lib folder to your project, example: [project]/src/styles/element-theme/lib
-
Install babel-plugin-component
$ npm install --save-dev babel-plugin-component
- Add plugin to babel.config.js
// babe.config.js
module.exports = {
plugins: [
// ... else
[
'component',
{
libraryName: 'element-ui',
styleLibrary: {
// the theme lib root dictionary, need ~
name: '~src/styles/element-theme/lib',
path: '[module].css',
base: true
}
}
]
]
};
- add remote
git remote add element [email protected]:ElementUI/theme-chalk.git
- update local
git pull element master