postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
596 stars 77 forks source link

External variable #105

Closed augusto-jm-amaral closed 6 years ago

augusto-jm-amaral commented 6 years ago

I import variables dynamically on the page, that is why I don't declare in css files, have some way to declare a var with external, preventing alerts from her?

jonathantneal commented 6 years ago

Yes, https://github.com/postcss/postcss-custom-properties#variables

augusto-jm-amaral commented 6 years ago

I'm Sorry @jonathantneal but I think I was not clear, this variable is dynamic, added at runtime, I can't add in variables because this will override all the places where I added the variables.

I didn't find a way, I disable warnings for now but I think the ideal would be to say that variable is global.