Tailwind is a leaky abstraction
21–30 of 391 posts
Re: Tailwind is a leaky abstraction
#22Agree 100%. I wish there was a lightweight utility framework that is truly just shorthand, i.e. if I know the CSS property I can predict what the class name would be. With Tailwind it's all arbitrary
Re: Tailwind is a leaky abstraction
#23Re: Tailwind is a leaky abstraction
#24Sometimes I wonder why we don‘t use inline css more often instead of tailwind.
What would be the difference?
TW classes are a lot more concise and provide a "design system" vs raw values and browsers are good at applying classes vs parsing inline styles for every element.
Re: Tailwind is a leaky abstraction
#25I find css-as-props is better than a huge string of classes, as it much more readable and statically analyzable. I wonder if anyone is working on a successor to styled-system (though it works fine).
Re: Tailwind is a leaky abstraction
#26This completely misses the point of Tailwind. The point is not to hide the complexity of CSS, but to provide access from the markup to enough of capabilities of CSS that you don't have to edit your stylesheets 95% of the time, when you alter the styling of a document.
When Tailwind does fall short because it doesn't provide the exact CSS feature that is needed to solve the problem, it still provides a template for how to solve the problem: Using one-rule utility classes, that are named for what they do, not for how they are meant to be used.
Re: Tailwind is a leaky abstraction
#27Tailwind has made building components in React an absolute joy for me. I don't need to scroll up to find my css-in-js definitions, I don't need to change windows to find the CSS modules, it's all there, in one place.
Re: Tailwind is a leaky abstraction
#28> You still need to know CSS. Yes. Tailwind CSS is just CSS: > A utility-first CSS framework It is not a leaky abstraction, because it isn't an abstraction. It's a only a special syntax for applying predefined blocks of CSS to HTML elements.
Re: Tailwind is a leaky abstraction
#29Re: Tailwind is a leaky abstraction
#30Things like tailwind are indicative of the hype train that frontend developers subscribe to. Unnecessary