top | item 39418565

(no title)

can3p | 2 years ago

I think tailwind went a bit too far, but in general it’s really hard to have a controllable amount of css on huge projects. The reason is that selectors are often too broad and it’s not possible to say in general whether a particular selector is being used or not.

Atomic classes really shine in this aspect, since it’s really just what you have in html and nothing more.

Another fantastic quality is the fact that you can really tweak things slightly in the html and skip inventing a modifier class just for this particular situation.

I think bootstrap css hits a really sweet spot there, since they have lots of reusable components, which are very easy to use and extend and a huge bunch of utility classes to accommodate for exceptions. I know that’s not an argument for spas, since you have components there, but for server side templates that’s the best

discuss

order

No comments yet.