News for hackers. Stuff that matters.
Re:Tailwind vs. Semantic CSS by sbergot on Monday October 23, 2023 @08:19AM (#37984619)
The only way to know is to go to the page and inspect it using devtools. No Ide will be able to infer which rule is going to apply to any given element.

But the problem is that you need to make sure that a given css change is going to affect only a specific set of component. So you need to check all components. Since it will be too time consuming, you will probably skip this step and hope for the best (and do some QA to check that nothing is obviously broken).

Re:Tailwind vs. Semantic CSS by tempmac on Monday October 23, 2023 @09:13AM (#37985135)
hmm it might be possible with enough tooling:

- read from webpack's output

- read from css-in-js: emotion / vanilla-extract / etc

Re:Tailwind vs. Semantic CSS by kaba0 on Monday October 23, 2023 @11:53AM (#37987493)
Then you avoid the browser, by emulating half a browser.. which is still useless, because you have plenty dynamic state you can’t test this way.