How Do You Name Your CSS Classes?

jennavisions

Jenna

Posted on July 21, 2024

How Do You Name Your CSS Classes?

What’s Your Preferred CSS Class Naming Convention?

  • BEM (Block Element Modifier)
  • SMACSS (Scalable and Modular Architecture for CSS)
  • OOCSS (Object-Oriented CSS)
  • Atomic CSS
  • Others

There are various naming conventions for CSS classes, each with its own advantages. What conventions do you use, and why do you prefer them?

Are you more of a dash (-) or underscore (_) person when naming CSS classes?

💖 💪 🙅 🚩
jennavisions
Jenna

Posted on July 21, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

How Do You Name Your CSS Classes?
discuss How Do You Name Your CSS Classes?

July 21, 2024