Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

CSS Architecture – BEM, OOCSS, SMACSS, I | CSS Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. CSS Course

Lesson 39 of 50

·css

CSS Architecture – BEM, OOCSS, SMACSS, ITCSS

12 mins

Course progress78%

What you'll learn

Keep these ideas in mind as you work through the lesson.

3 points
  • Choose **one** methodology and stick to it across a project.
  • Avoid **over‑specific selectors**; keep specificity low.
  • Group related styles (base, layout, component) in separate files or sections.

Maintainable CSS needs a naming convention and a layered architecture.

MethodCore Idea
BEMBlock __ Element -- Modifier (.btn--primary).
OOCSSSeparate structure from skin (object‑oriented).
SMACSSCategorises rules: Base, Layout, Module, State, Theme.
ITCSSInverted Triangle – from generic to explicit.

Example: BEM button

<button class="btn btn--primary">Click</button>
.btn { padding:0.5rem 1rem; border:none; }
.btn--primary { background:#0066cc; color:#fff; }
Make it stickPractice what you've learned1 quiz · 6 practical tests · Optional activities from CSS CourseBrowse activities
Previous lessonCSS Performance – Critical CSS & Unused CSSContinue to lesson 40CSS Pre‑processors – Sass & LessBack to CSS Course curriculum