Comments on: Using CSS Cascade Layers to Manage Custom Styles in a Tailwind Project https://css-tricks.com/using-css-cascade-layers-to-manage-custom-styles-in-a-tailwind-project/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Mon, 05 Sep 2022 19:27:03 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Mikhai https://css-tricks.com/using-css-cascade-layers-to-manage-custom-styles-in-a-tailwind-project/#comment-1796965 Mon, 05 Sep 2022 19:27:03 +0000 https://css-tricks.com/?p=372576#comment-1796965 It’s not work for me with Vite and React( I have message that tailwind not support nested rules.

]]>
By: Noam Anisfeld https://css-tricks.com/using-css-cascade-layers-to-manage-custom-styles-in-a-tailwind-project/#comment-1796843 Thu, 25 Aug 2022 22:08:08 +0000 https://css-tricks.com/?p=372576#comment-1796843 It’s also essential to note that when using cascade layers, !important should never be used as a measure for overriding specifity.

As explained in this article (which is also linked on the article above), for !important rules the precedence of the layers is in the reverse order, allowing lower-precedence layers to literally mark certain rules as too important to be overriden by following layers (even with their own !important rules). This behavior requires being careful with what you are using !important for.

]]>