• Pencilnoob@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 days ago

    The eternal pendulum swinging between BEM and atomic css forever. The best is to start with atomic and then extract a few BEM use cases as duplication emerges. Then you’ve got the best of both worlds.

    Roughly half of css is extremely specific to one place and not worth extracting. The remainder though is actually important to the design system and is worth deduplicating and formalizing into BEM / variants. The trouble is when you try to BEM everything and end up with thousands of classes that are only used once.