by asimpletune · 1y ago · 0 comments
Then when you come back to that code later, you can confidently edit it without worrying about causing changes to other elements.
The cascading nature of CSS is still helpful, but I find that I usually want to limit my styling to just one element. For all the rest I go back to css but I wrote very little css because I usually just want to get the whitespace right.
there are helpers for that in the IDE (e.g., "Show Applied Styles for Tag" in Intellij) or even in chrome dev tools that show all this in a readable way. Tailwind snippets mentioned in this HN topic look kind of scary in comparison.
But overall it's a bit easier yes.