Submitted
Product Preview Component using Less and BEM naming conventions
Keenan Chiassonā¢ 10
@laszlo-ratesic
Design comparison
Solution retrospective
I found it particularly difficult when deciding on naming conventions for my css rules. I'm still unsure if I'm using Block Element Modifier syntax correctly
I am also aware of my sort of "overengineering" the tailwind-esque utility classes, but they really helped speed things up
My biggest question would be, how do my naming conventions look in regards to BEM best practices. Is it okay to have class called .card__prices--retail-price? I am unsure of what a modifier should truly look like.
Any and all help much appreciated. Thanks a bunch!
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord