Re:Why I Love Tailwind
by lenkite on Monday December 07, 2020 @12:11PM
(#25334147)
Frameworks like Tailwind CSS will go the way of the dodo, once CSS gets proper scoping, isolation and inheritance. (No JS needed). Then you can truly have semantic HTML with presentational stuff separated cleanly without needing any toolchain or 1k+ deps library to do this.
[ Parent
| on HN ]
Ok that sounds fantastic, how long should we wait until that's the case and is adopted by all browsers and is backward compatible? That's the issue here.
Ballpark guess - less than 5 years. There is the work ongoing on CSS and HTM modules at:
https://github.com/WICG/webcomponents/blob/gh-pages/proposal...
https://github.com/WICG/webcomponents/blob/gh-pages/proposal...
Scoping is one part of the problem. Complex selector is another one. Design consistency is yet another one.
Tailwindcss is solving those 3 issues.