Re:CSS Utility Classes and “Separation of Concerns” (2017)
by kristiandupont on Saturday November 16, 2019 @03:59PM
(#21554913)
In addition to meeritas point about pseudo classes and media queries, I'd add that the fact that it narrows down the space is an important factor. The classes mean that I need to find the best fit rather than spend hours matching pixels by hand.
It's like going from drawing charts on blank paper to grid paper. You stay within certain boundaries. It seems like a detail but I find that in practice (and in fairness, I've only been using Tailwind a bit so far), this makes a significant difference to the way I think and work with UI.
[ Parent
| on HN ]
Re:CSS Utility Classes and “Separation of Concerns” (2017)
by bstasse on Saturday November 16, 2019 @04:27PM
(#21555065)
This is the equivalent of predefined variables (usable in any preprocessor and now even in plain CSS), nothing specific about Tailwind here. Except for the fact that in the case of Tailwind they are tied to properties, but they are defined globally under the hood, so this doesn't change anything.