4 ms·
Using semantic css doesn't always mean your markup and styling are separate. There are plenty of modern frameworks nowadays that use single file components (pr
by mpeg 3y ago
Using semantic css doesn't always mean your markup and styling are separate.
There are plenty of modern frameworks nowadays that use single file components (pretty much every popular framework except react?) and often you even choose to scope the css to one component only, if you want.
- kaba0 3y agoTailwind is not worse in this case either, and one might argue the “cascading” part of CSS is useless on such a local scope. Also, tailwind gives you a pragmatic, limited selection of sizes, colors, etc, which is a very good basis for designing. (You shouldn’t be using a new px value for everything, they should come from a small custom-chosen set)