freecoding.school100% FREE · NO SIGNUP
Neon DistrictISSUE #46 of 50

methodology · BEM · SMACSS · utility-first

PrismaVSJank the Janitor
Prisma saysMethodologies — BEM, SMACSS, utility-first — keep CSS organized and predictable at scale.

As projects grow, naming chaos sets in. BEM (Block__Element--Modifier) gives flat, intention-revealing class names. SMACSS categorizes rules. Utility-first (Tailwind-style) composes tiny single-purpose classes in the markup. Pick one and stay consistent — the system matters more than which.

Power-ups you unlock

Jank the Janitor attacks — common mistakes

Boss battleRewrite a nested rule set as flat BEM classes.

Example code

<!doctype html><html><head><meta charset="utf-8">
<style>.card{background:#140a28;padding:14px;color:#e6e0ff}.card__title{color:#b388ff}.card--featured{border:2px solid #b388ff}</style></head><body style="background:#06040d;padding:20px"><div class="card card--featured"><h3 class="card__title">BEM</h3></div></body></html>
▶ Open the interactive comic issue
‹ Css Houdini · Paint Api · WorkletResets · Normalize · Modern Resets ›