Skip to content

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

3 participants