Project framework: VUE-CLI2 + ANTD-VUE
Antd-vue custom theme
Create a new myTheme. Less file and reference it in main.js
MyTheme. Less references antD. less and sets the theme color you want directly
Appeals are not used globally, and each time they are used they need to be referenced by @import in style
Setting global Styles
Build/utils. Js to less add a judgment conditions, at the same time using sass – resources – loader plug-in, introduce your own theme less resources can become a global variable