Skip to content
Submitted 8 months ago

QR Code Component with SMACSS, BEM & Concentric CSS

bem, smacss, foundation, pure-css, accessibility
LVL 1
mr-mib•55
@mr-mib
A solution to the QR code component challenge

Solution retrospective


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

I am most proud of the way I approached CSS organization in this project.

Instead of writing CSS in an unstructured way, I applied a clear architecture using SMACSS principles (Base, Layout, Components, Utilities), which I summarize with my personal mnemonic "BLCU".

I also implemented a consistent property ordering strategy inspired by Concentric CSS (Positioning, Box Model, Border, Background, Text, Effects), which I refer to as "PM BoBaTE".

This allowed me to write CSS that is more readable, predictable, and easier to maintain.

If I had to improve something, I would push the component approach further and make the structure even more reusable for larger projects.

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

One of the main challenges was understanding how to properly structure CSS beyond just making things work visually.

At first, I tended to mix layout, components, and utility styles in the same place, which made the code harder to read and maintain.

To overcome this, I researched different methodologies such as SMACSS and BEM, and practiced applying them directly in this project.

Another challenge was organizing CSS properties in a consistent way. Adopting a Concentric CSS approach helped me solve this by giving me a clear and logical order to follow.

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

I would like feedback on my CSS architecture and naming conventions.

  • Is my use of SMACSS (Base, Layout, Components, Utilities) appropriate for a project of this size?
  • Am I applying BEM correctly in terms of naming and structure?
  • Is my property ordering (Concentric CSS approach) considered a good practice in professional environments?

Additionally, I would appreciate advice on how to scale this approach for larger, multi-page projects.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on mr-mib’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