Remix.run Logo
efortis 2 hours ago

CSS Modules are a better solution. They compile classnames into unique identifiers, so there's no need for BEM or SMACSS conventions:

https://x.com/efortis/status/1888304658080256099

francislavoie an hour ago | parent [-]

I disagree. I don't want to jump between two files constantly. With Tailwind I can stick to one file and never need to think about naming things.

nevertoolate 5 minutes ago | parent [-]

Right so it is easier to write code quickly, but not to maintain a system. Tailwind is the right tool if you want to generate a prototype with LLM agents. It can be quickly deleted or can be used as visual prototype to create reusable components. And once the component is built for long term maintenance as priority, the collective knowledge has been built up so naming becomes simpler, important and elucidating.

francislavoie 2 minutes ago | parent [-]

The component itself is the semantics, adding naming over CSS classes adds no value whatsoever, only adds cognitive load and requirement of context switching to understand "what does this named class actually do?"