postcss-calc icon indicating copy to clipboard operation
postcss-calc copied to clipboard

[Feature Request]: Reduce pure pow() functions

Open blyedev opened this issue 1 year ago • 0 comments

What should be improved?

I use font sizing with the golden ratio multipliers for convenience. It's a pure function and I'd like to reduce it like the calc function is.

Describe the solution you would like

This:

  font-size: calc(1rem * pow(1.618, 3));

shall turn into this:

  font-size:  4.235801032rem;

Obviously rounding should apply like it does for everything else

Possible alternatives

?

Additional context

I tried to do it and apparently it's not supported, but maybe its simply the nuxt config as I have never used postcss-calc outside of nuxt

Are you willing to work on this?

  • [ ] Yes, I would like to help

blyedev avatar Nov 01 '24 22:11 blyedev