Closed halmos closed 5 years ago
Hey, I haven’t heard back from you, so I may attempt to rewrite this plugin soon to address this.
Hi Jonathan, Sorry for slow reply. I'd be happy to put more time into this next week, but if you're planning a re-write with other feature considerations anyway, then please feel free to incorporate this feature with the others.
This will be resolved by v8. https://github.com/postcss/postcss-custom-properties/pull/132
This a proposed solution to issue #100. It allows variables to be defined in either
:root
orhtml
. It also adds a postcss option calledroot
that allows control over which node variables will be set in. If thevariables
,appendVariables
androot
options are set, the variables will be appended to the css in the specified root (e.g. either:root
orhtml
). Two unit tests have been added for these new features as well.