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

customizing variables generated by light-dark transform #708

Open
mayank99 opened this issue Mar 28, 2024 · 0 comments
Open

customizing variables generated by light-dark transform #708

mayank99 opened this issue Mar 28, 2024 · 0 comments

Comments

@mayank99
Copy link
Contributor

The light-dark() transform generates these variables:

--lightningcss-light: initial;
--lightningcss-dark: ;

As a library author, I want control over the variable names exposed in my compiled stylesheet. Especially when applications might already be using lightningcss themselves for the final bundle.

Would it be possible to allow changing the prefix?

--__lib-internal-light: initial;
--__lib-internal-dark: ;

If not out-of-the-box, then maybe through a custom transform?

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

No branches or pull requests

1 participant