Design comparison
SolutionDesign
Solution retrospective
Hello all! I'm still learning how to use BEM properly, as well as good CSS variables naming. If I may ask the following questions on my solution.
-
I once again tried to employ proper usage of the BEM methodology. Is my use correct of that? Also maybe a dumb question, but should the html generally include a BEM class name on every component even if no CSS styling is ever applied to it?
-
Is there a proper way to handle reusable utility classes, such as a flex grouping in BEM or does BEM require unique classes?
Any feedback is welcome, and any help on these questions is most appreciated!
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