How to modify the scss variable in the vue project?

the project encounters the function that needs to modify the theme. V-if can be implemented, but it is very troublesome. Want to know how to change the variables color in scss through vue or js

Jun.15,2021

has a good idea, but not


can only use postcss . Just like manipulating DOM nodes, there is no simple way to manipulate CSS nodes


, but to extract all the theme colors and modify them uniformly


switch class. The theme can define multiple class at the top

.
Menu