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

css variables renaming #56

Open
theseanl opened this issue Jul 13, 2022 · 4 comments
Open

css variables renaming #56

theseanl opened this issue Jul 13, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@theseanl
Copy link

I've always wished Closure Stylesheets would have such a feature – it could rename css variables and emit it in a call goog.setCssNameMapping just like other class names, so that one can modify its value in JS via something like element.style.setProperty(goog.getCssName("--my-variable"), "#fff"). Would such a feature be in the scope of this project?

@nex3 nex3 added the enhancement New feature or request label Jul 13, 2022
@nex3
Copy link
Collaborator

nex3 commented Jul 13, 2022

In principle I could see this supporting something like that

@RodrigoTomeES
Copy link

hi!, @nex3 any update about this? Thanks

@MrHBS
Copy link

MrHBS commented Nov 4, 2023

I would like to see this as well. Thanks!

@shivamkj
Copy link

Till this plugin adds support for css variable, we can use postcss-variable-compress - npm plugin. I used it with Astro, seems to be working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants