Re:Svelte – A UI framework that compiles into tiny standalon...
by TheAceOfHearts on Wednesday November 30, 2016 @08:45PM
(#13076442)
Look at css-module-values [0]. It's not perfect, but it lets you share values between JS and CSS. All values in the file are visible on the imported module.
[0] https://github.com/css-modules/postcss-modules-values