News for hackers. Stuff that matters.
Re:Tailwind: A Utility-First CSS Framework by sebdedeyne on Thursday September 27, 2018 @12:15PM (#18085872)
There seems to be a misconception that you need to go all-in on utilities when using a framework like Tailwind.

If you have 500 buttons using the exact same set of classes, you should of had a button class in the first place. Almost all my projects have their own button and form input classes for this exact reason!

Where utility-based CSS frameworks really start to shine is the other 75% of your codebase, where you're inventing clever class names, only to end up using them once.

This is also why Tailwind calls itself a utility-FIRST framework. Build things with utilities, and extract components to classes when the need arises. Avoiding early abstractions provides a lot of value (in any programming language for that matter). Not having to invent a name for every single piece of UI also saves a ton of headaches down the road.

Re:Tailwind: A Utility-First CSS Framework by josephmx on Thursday September 27, 2018 @02:12PM (#18087165)
That does make a lot more sense!