Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product Preview Component using Less and BEM naming conventions

@laszlo-ratesic

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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 GitHub
Discord logo

Join 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