4 ms·
If you need any of those things, you should be using a proper stylesheet. Use <style scoped='scoped'> in the <body>, if you really must. A crude "not that diff
by wizzwizz4 3y ago
If you need any of those things, you should be using a proper stylesheet. Use <style scoped='scoped'> in the <body>, if you really must.
A crude "not that different from writing inline styles" classy framework just makes it harder to refactor your CSS in future, because it's all tucked away under incomprehensibly-named CSS classes, and there are otherwise-useless <div>s all through the HTML.
- afiori 3y agoI should clarify that I primarily touch html via React, so the unit of reusability is not CSS but rather components. For handwritten html I believe that tailwind has significant downsides (unless you abuse @apply), but that the case I focus on. I should have mentioned that I believe tailwind to be applicable only if you have some strong templating support > Use <style scoped='scoped'> in the <body> This seems to have been removed from everywhere since at least 2017