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
native plugin to support variable units #578
Comments
@jonathantneal created a PostCSS plugin for this : https://github.com/csstools/custom-units But for |
Oh, awesome, I was looking all over for a PostCSS plugin, but all the ones I found via Google were non-native custom syntax. Thanks for the link! |
specification : https://drafts.csswg.org/css-variables-2/#variable-units |
What would you want to propose?
I would love added support for the upcoming variable units syntax.
Suggested solution
In postcss-custom-properties, I imagine this would be a trivial addition to the transformations, given that the discussion around it suggests that
20--hem
is nothing but syntax sugar forcalc(20 * var(--hem))
Additional context
No response
Validations
Would you like to open a PR for this feature?
The text was updated successfully, but these errors were encountered: