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.
The only tiny issue left with that approach is that you still can't share code (for instance, colors) between JS & CSS.
but overall, I think it's the best compromise today.