Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Reduce pure pow() functions #222

Open
1 task
blyedev opened this issue Nov 1, 2024 · 0 comments
Open
1 task

[Feature Request]: Reduce pure pow() functions #222

blyedev opened this issue Nov 1, 2024 · 0 comments

Comments

@blyedev
Copy link

blyedev commented Nov 1, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant