css-global-variables
css-global-variables copied to clipboard
Easy manipulation of CSS Global variables using Javascript
Uses `window` object for the global so won't work in SSR / server context.
``` ● Test suite failed to run TypeError: Cannot read property 'getAttribute' of undefined 8 | return name.replace(/[A-Z]/g, m => "-" + m.toLowerCase()); 9 | }; > 10 | public...
https://chromestatus.com/feature/5193698449031168 I don't think that this lib could easily make use of this upcoming feature (one would need to metaprogram css files) but it might interest the author as it...
I needed it to work with Nuxt and this is how I fixed it.