postcss / postcss-custom-properties

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

Plugin to allow variables outside of :root #59

Closed gusdaud-zz closed 7 years ago

gusdaud-zz commented 7 years ago

Is there any way ?

.myTheme {
  --myvar: red;
}
MoOx commented 7 years ago

No we won't support that as it requires a runtime to be correctly interpreted. Please read correctly the top of the readme where you will find all explanation.