Description
What version of Tailwind CSS are you using?
v3.4.5
What build tool (or framework if it abstracts the build tool) are you using?
postcss-cli 8.4.39 (but IMHO not relevant here)
What version of Node.js are you using?
v20.9.0
What browser are you using?
Not relevant
What operating system are you using?
macOS (but not relevant)
Reproduction URL
Because the bug belongs to Pug or slim, play.tailwindcss.com
cannot be used to build an example. I will send a PR to fix, please don't close this issue.
Describe your issue
After upgrading my Rails application (using Slim templates) to Tailwind CSS v3.4.5, I found a regression that some classes are not generated anymore. Example:
.bg-green-300.2xl:bg-red-300
'(Look mom, no closing tag!)
The class 2xl:bg-red-300
is missing. It seems this happens because #13959 uses an invalid number check.
Stay tuned, I'm working on a PR to fix this.