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

fix: added prefix to tailwind variables #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NicolaiHorlacher
Copy link

I noticed an issue with this package.

Although a prefix is used for the internal tailwind classes, it does not apply to tailwind css variables.
So these tailwind variables can override variables in projects where this package is used.

Unfortunately tailwind does not have a setting for css variables prefixes, so I implemented this workaround:
tailwindlabs/tailwindcss#10697

For example:
--tw-bg-opacity gets renamed to --va-tw-bg-opacity with this changes.

I had to update the postcss packages so that the project compiles with a current node version.

@ktquez
Copy link
Member

ktquez commented Mar 16, 2025

Thanks @NicolaiHorlacher

@lucasferreiralimax do you want to merge and publish?

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

Successfully merging this pull request may close these issues.

2 participants