-
TailwindCSS v4 includes all styles within @layer, which is terrible for browsers that don't support @layer as it will cause all styles to fail. Is there any way to disable this option? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
It's a baseline feature available in all browsers that v3 also supported. So probably no big deal? |
Beta Was this translation helpful? Give feedback.
-
You can try doing: -@import "tailwindcss";
+@import "tailwindcss/theme.css";
+@import "tailwindcss/preflight.css";
+@import "tailwindcss/utilities.css"; Though do bear in mind Tailwind expects CSS cascade layers to be used, so the above could break things. |
Beta Was this translation helpful? Give feedback.
-
I hope the official can support two writing methods. Currently, in my usage scenarios, there are cases where the Chrome version is lower than 100. The writing methods of scopes like @layer used in the official built - in cannot be downgraded. Even if I modify LightningCSS, it doesn't make any sense. At present, the method of directly referencing from the source code in the issue can be used temporarily, but it is not the officially recommended writing method. I spent a great deal of effort migrating from v3 to v4, and now I have to worry that anomalies may suddenly be introduced during subsequent upgrades. It's really frustrating. |
Beta Was this translation helpful? Give feedback.
-
after the update of tailwind dont know why i cant extend my fonts and colors in my project then how to do it ? plaz help me😭😭 |
Beta Was this translation helpful? Give feedback.
You can try doing:
Though do bear in mind Tailwind expects CSS cascade layers to be used, so the above could break things.