cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.02k stars 174 forks source link

fix: Transform within default variables #88

Open NikolayMakhonin opened 1 year ago

NikolayMakhonin commented 1 year ago

Transform within default variables https://github.com/cuth/postcss-pxtorem/issues/79

bart-jaskulski commented 1 year ago

@NikolayMakhonin Already handled this in #80. Nonetheless, your regex seems less constrained. I would only suggest to write a test for that case.

bart-jaskulski commented 1 year ago

Anyway, I think this library might need a reliable fork, as @cuth seem not to maintain it for some time

meduzen commented 1 year ago

There’s one by @hemengke1997 at https://github.com/hemengke1997/postcss-pxtorem, and we’re at an early stage of using it at work, but so far it’s great.

dimitry-blinov commented 4 months ago

@yangmingshan @cuth Please add the ability to convert px to em inside var in the callback ignoring custom variables. Can u merge and release a new version?