News for hackers. Stuff that matters.
Re:Tailwind vs. Semantic CSS by skydhash on Monday October 23, 2023 @07:20AM (#37984106)
> What kind of fragile markup and problematic CSS global rules are you worrying about?

I’m wondering that too. If I’m writing a SPA, styles are usually scopped to the component with a base styles for UI atomic elements. And some conventions around spacing. If it’s a website, it will be separated in layouts and small components Bootstrap-like. An update will be identified as a variant or a special case.

As for coding this, search all files is usually a godsend when refactoring. You can use ripgrep if the editor does not have a good implementation.

Re:Tailwind vs. Semantic CSS by sbergot on Monday October 23, 2023 @08:13AM (#37984555)
The author uses css targets like *body > header*. Search and replace won't be enough to tell you which components are affected by a given rule.