Open okonet opened 7 years ago
Is there a reason you'd not want this? It seems to me that since you've imported the values into your CSS file, you might want them in the JS file too, no?
The only reason is that there is no difference between my class names and variables in this object.
I'm doing some dynamic classNames matching depending on my props and was seeing that my elements got additional classNames (mobile
and display
). This could probably be fixed in the matching function but I was wondering if this is how it suppose to work.
Having variables in the separate file
and when importing like this:
and then
I see that styles now contain imported variables.
I'm not sure if this is expected behavior but I'd expect this behavior only from
variables.css
.