Export variables from SASS to vanilla CSS?
问题 Consider I have a long list of SASS variables in different .scss files like this: $app-color-white: #ffffff; $app-color-black: #000000; What would be the most effective way to export these variables as vanilla CSS variables? :root { --app-color-white: #ffffff; --app-color-black: #000000; } Maybe, there is a SASS-way or even some pre-processor? I want my SASS framework to be also used in vanilla CSS projects. 回答1: I think the best way to do this would be using something like a variable map; E