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 --theme(…) function when legacy JS plugins are used #17458

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

philipp-spiess
Copy link
Member

Closes #17346

This PR fixes an issue that caused the --theme(…) function to behave differently after a legacy JS plugin or config was configured. The issue was that the compatibility layer would patch the theme value resolver to always inline the value. This, however, is only expected to happen if the path does not look like a CSS variable in which case this legacy code path should not be run.

To fix this, I'm now keeping a reference to the regular theme resolution function and call into it if the path starts with --.

Test plan

@philipp-spiess philipp-spiess requested a review from a team as a code owner March 31, 2025 09:15
@philipp-spiess philipp-spiess merged commit eec1bf2 into main Mar 31, 2025
6 checks passed
@philipp-spiess philipp-spiess deleted the fix/theme-legacy-plugins branch March 31, 2025 11:06
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.

CSS Generation Issue between v4.0.14 and v4.0.15 in TailwindCSS
2 participants