Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

woohm402
Copy link
Contributor

@woohm402 woohm402 commented Mar 6, 2025

Fixes #16978, and also added support for dash.
Classes like text-theme1-primary or text-theme1_primary should be treated as valid.

If this approach is not aligned with the project’s direction or there are any concerns, please feel free to close or edit this PR 😃


As is

Classes conatining number followed by dash or underscore (e.g. bg-theme1-primary, text-title1_strong) are ignored, and utility classes are not generated.

To be

Classes conatining number followed by dash or underscore (e.g. bg-theme1-primary, text-title1_strong) are treated as valid tailwindcss classes

@woohm402 woohm402 requested a review from a team as a code owner March 6, 2025 08:33
@woohm402 woohm402 changed the title Fix: allow number followed by dash or underscore Allow number followed by dash or underscore Mar 6, 2025
@woohm402 woohm402 changed the title Allow number followed by dash or underscore Ensure classes containing number followed by dash or underscore extracted correctly Mar 6, 2025
@woohm402 woohm402 changed the title Ensure classes containing number followed by dash or underscore extracted correctly Ensure classes containing number followed by dash or underscore are extracted correctly Mar 6, 2025
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I'm really thrilled that you contributed, we've made some big changes in this code part recently and there is no dice someone would have had the courage to contribute before the changes. Great stuff!

@RobinMalfait RobinMalfait merged commit 4a02364 into tailwindlabs:main Mar 6, 2025
5 checks passed
@woohm402
Copy link
Contributor Author

woohm402 commented Mar 6, 2025

Thank you for the quick review! I’m really glad to contribute 😄

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.

Utility Classes Not Generated When Number is Followed by an Underscore in v4.0.10
3 participants