madeleineostoja / postcss-responsive-type

Automagical responsive typography, built on PostCSS
372 stars 21 forks source link

Doesn't work with css variables #33

Closed Yelinz closed 5 years ago

Yelinz commented 5 years ago

As i have updated my app to the latest Postcss version, the responsive type didn't work with standard CSS variables any more.

The font-range produces undefined and NaN, which leads to that the stylesheet can't be composed and font-size also doesn't take the given variable, but doesn't produce an error.

madeleineostoja commented 5 years ago

Yep that's because postcss processing happens at build time, so we have no way of knowing what values legit postcss variables point to.

If it was working before I'd assume that you had something transforming your variables at build time (I know cssnext did/does this for example).

Closing as nothing we can do to fix this