Have you seen any good articles or projects using Cascade Layers for CSS architecture? Modern CSS seems capable of something similar to BEM without complex tooling, but I’m struggling to make it work. You know, 15-year-old habits won’t let you go easy.
I’ll start:
https://www.miriamsuzanne.com/2022/09/06/layers/ by @mia
https://daverupert.com/2022/08/modern-alternatives-to-bem/ by @davatron5000
https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/ by @5t3ph
@pepelsbey I think this one from @keithamus is a pretty good "naming things" companion to the posts you listed: https://www.keithcirkel.co.uk/css-classes-considered-harmful/
It also might help to break BEM into parts, as…
- A way of thinking about elements that belong to blocks, and the modifiers for each. That could still be a useful way to think?
- Strict single-class selectors with dashes and underscores. This feels outdated?