elementui 官网自定义主题地址:https://element.eleme.cn/#/zh-CN/component/custom-theme
点击在线主题编辑器进入自定义主题
点击官方主题,进行复制,创建一个自己的主题
点击自己定义的主题进行编辑,完成后点击下载会生成一个style.zip压缩文件
对style.zip文件进行解压,得到theme文件夹,并将theme文件夹放入我们所需要的项目文件夹中
最后配置main.js,将其引入
import ElementUI from 'element-ui';
import './theme/index.css'
// import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
/* eslint-disable no-new */
Vue.use(ElementUI);