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
With TailwindCSS 2.1.1, when JIT mode is disabled, and using extended variants, precedence of classes are not properly compiled.
For example, here 'dark' variant is extended with 'display'.
And with JIT disabled, compiled in production environment, .hidden { display: none } class has higher precedence than @media (prefers-color-scheme: dark) { .dark\:block { display: block }}.
However with JIT enabled (see ./build-styles-jit.css), this issue doesn't exist. (Extended variants are not needed here anyway)
The text was updated successfully, but these errors were encountered:
What version of Tailwind CSS are you using?
v2.1.1
What build tool (or framework if it abstracts the build tool) are you using?
postcss-cli 8.3.1
What version of Node.js are you using?
v14.16.1
What browser are you using?
Chrome
What operating system are you using?
debian bullseye
Reproduction repository
https://github.com/amithm7/issue-tailwindcss-2.1-no-jit-build
Describe your issue
With TailwindCSS 2.1.1, when JIT mode is disabled, and using extended variants, precedence of classes are not properly compiled.
For example, here 'dark' variant is extended with 'display'.
And with JIT disabled, compiled in production environment,
.hidden { display: none }
class has higher precedence than@media (prefers-color-scheme: dark) { .dark\:block { display: block }}
.However with JIT enabled (see ./build-styles-jit.css), this issue doesn't exist. (Extended variants are not needed here anyway)
The text was updated successfully, but these errors were encountered: