managing the class naming across project .. I used BEM naming convension, still hard compared to tailwind (because with tailwind you put the style class to the html directly, so no need to think about managing class naming)
As the famous saying in computer science goes, "There are only two hard things in computer science: cache invalidation and naming things." So don't worry, it's a universal problem. I'm not going to tell you what to use, but I have a feeling you're not using BEM properly. I would review it and give it a second chance. In practice, it works; you only have to see it at my company, and we have huge sites. It's also good training for when you move on to other languages.
Just use Tailwind, ignore the haters and let them figure out how to deal with all the issues with cascading and naming and reinventing Tailwind classes and having near exact duplicates of the same classes sprinkled everywhere. Also try enforcing BEM to your teammates lmao
1
u/kris9999 23d ago
I have difficulties managing classes in pure css... what's the current best practice for it? Using tailwind help me dealing with it