Skip to content

Correct order of the BEM (naming) #184

@luis-pato

Description

@luis-pato

I have been reading about BEM and i find it really interesting.
Concerning the order in the naming convention i have seen two contradictory ideas, so i though i would write you to clear this up.
In some places i have seen that in BEM you always have to write block__element--modifier (in this order).
In other places i have read we can actually use block--modifier__element.
( i think the example was .person--female__hand).

I can see some reasons for using both, but was wondering what you recommend.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions