3 ms·
it removes the separation between your structure and your styles so you can style as you go. this sounds wrong because “separate responsibilities!” but in real
by iovrthoughtthis 6y ago
it removes the separation between your structure and your styles so you can style as you go.
this sounds wrong because “separate responsibilities!” but in reality structure and style are so interconnected, for html and css, that you’re often changing one with respect to another so why not colocate the info.
also, managing a large css stylesheet is often terrible and it becomes write only as a result. it is easier to add new styles that override than attempt to find out which styles impact your target elements and change then. this is again due to the way that structure and style are intimately linked for html and css.
its better than writing raw styles on the html because that is rather obtuse, tailwind shortens many of the common style attribute names. e.g background-color: #efefef becomes bg-gray-50. this links into then named color palette that tailwind gives you.
also, *everything* is configurable.