Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

Nft Preview Card Component using BEM and SMACSS Methodologies

bem, smacss, sass/scss
John Arren Novilla•30
@jarren15
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I’m most proud of how I structured my CSS using a combination of BEM and SMACSS. This approach helped me keep my codebase modular and easy to navigate, especially as the project grew. It allowed me to separate concerns cleanly and maintain a consistent naming convention, which improved both readability and maintainability.

If I were to approach the project again, I would spend more time upfront planning the overall structure of my CSS architecture. I realized midway that a clearer hierarchy or a more defined component strategy could have improved scalability, especially as I added more responsive states and components.

What challenges did you encounter, and how did you overcome them?

One of the main challenges was integrating BEM and SMACSS in a way that felt intuitive and didn’t lead to redundant or overly verbose class names. There were moments when I had to refactor components to better align with the methodologies, especially as new features were added. I overcame this by revisiting documentation and reviewing real-world examples, which helped clarify how to apply both systems together more effectively.

Another challenge was maintaining layout consistency across breakpoints using the mobile-first approach. I resolved this by testing frequently at different screen sizes and refining my use of relative units and media queries to ensure a smooth, responsive experience.

What specific areas of your project would you like help with?

I’d appreciate guidance on how to further streamline the integration of BEM and SMACSS, particularly around organizing utility classes versus component-level styles without introducing confusion. Additionally, input on optimizing mobile-first design strategies, such as best practices for handling complex layouts and performance considerations on low-powered devices, would be valuable for future projects.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on John Arren Novilla's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License