4 ms·
The thing I don't like about tachyons, or many CSS "frameworks", is that it severely uglies-up your markup with long class attributes. Give me a web dev framew
by gspencley 3y ago
The thing I don't like about tachyons, or many CSS "frameworks", is that it severely uglies-up your markup with long class attributes.
Give me a web dev framework with view encapsulation / scoped styles and you can almost get rid of class attributes in your markup all together, especially if you build a component library that your higher level components can consume.
- naasking 3y agoThe ugliness is a feature. Declare HTML components that encapsulate the classes. Then each component is stand-alone WYSIWYG and composes easily with others.
- The5thElephant 3y agoExcept you still see the encapsulated classes when you inspect it in production, and often that is where the bugs appear and need to be figured out. The ridiculous class strings get particularly hilarious when anything beyond basic CSS is used. Want CSS variables? Now it's even less readable!
- naasking 3y agoReading them is easy, that's one of the main benefits of atomic CSS. WYSIWYG.