4 ms·
HN source is also a testimony of css2 era. Inline attributes still present.
by agumonkey 5y ago
HN source is also a testimony of css2 era. Inline attributes still present.
- nine_k 5y agoI don't see a stark difference between inline attributes and, say, tailwind CSS.
- rvense 5y agoTo me it's the other way around. If you have a class that's only used once, is it better than inline styles? To me it's worse. You've just moved it to a different file. With Tailwind, I work from the bottom up, with small composable classes, I notice common combinations and bundle them together in new classes. The end result is a lot better.
- agumonkey 5y agofair point, i was thinking about tailwind actually .. i guess it just provide shorter encoding and a few shortcuts to get done quickly (at the cost of ad-hoc names)
- 1123581321 5y agoUtility classes are typically fewer characters, can contain multiple declarations and benefit from cascading, can benefit from responsive selectors, and can be updated in one place in the code when changes are required.
- deleted 5y ago[deleted]