You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a regression similar to #14005 but present in Tailwind v4 (4.0.8). The 2xl: variant classes are not extracted from sources by the Tailwind CLI.
Hey! Thanks for the repro. We're working on some larger scale changes to our scanner logic and have made sure to include your test case there as well 👍 We'll update you when we we're closer to shipping these fixes.
There is a regression in v4 in Slim templates - the 2xl variant classes are not extracted from source files.
What version of Tailwind CSS are you using?
4.0.8
What build tool (or framework if it abstracts the build tool) are you using?
tailwindcss CLI
What version of Node.js are you using?
n/a
What browser are you using?
n/a
What operating system are you using?
Linux
Reproduction URL
https://github.com/borama/tailwind4-slim-issue
Describe your issue
There is a regression similar to #14005 but present in Tailwind v4 (4.0.8). The
2xl:
variant classes are not extracted from sources by the Tailwind CLI.Sample project:
1. This works OK in v3 (tailwindcss v3.4.17):
2. The same Slim template does NOT work in v4:
I.e. not only it does not extract the
2xl:bg-red-100
class, it ignores all classes in the Slim template on the same line.3. When the
2xl:
class is the first on the line, it works againInterestingly, when I swap the order of the classes, making the
2xl:
class be the first on the line, it starts working:The text was updated successfully, but these errors were encountered: