Earlier quoted context omitted.
This is one of the least elegant ways to scope CSS though.. you may as well just write inline CSS I like BEM personally. "navbar__item" scopes the styling to the nav item > Once you're well familiar with your toolset, you know what to reach for to quickly reach a desired end state This also applies to plain CSS, doesn't it? The big value add that Tailwind brought isn't their utility classes IMO - it's their philosoph…
You can’t use inline css it’s not at all the same. Inline css 1. Can’t use media queries (responsive design). 2. Gets you to specificity hell - you loose ability to cascade. 3. Does not follow any system or reuse of values. 4. Values can’t be centrally changed. Utility clases are still classes - when you change class value it changes everywhere where the class is used. 5. Its verbose. Utility classes can have multipl…
Or you end up redefining dozens of CSS variables inline :)