Learn the BEM naming convention to write more organized, maintainable CSS stylesheets.
Contribute corrections or improvements to the getbem.com documentation site.
Use as a teaching reference when explaining CSS naming conventions to new frontend developers.
This repository holds the source code for getbem.com, a website that explains BEM to a general audience. BEM stands for Block, Element, Modifier and is a naming convention for writing CSS, the code that controls how web pages look. The idea behind BEM is to give CSS classes structured, predictable names so that developers working on a project can understand what each piece of styling does and where it belongs, without digging through all the code. The site itself is built with Astro, a framework for generating static websites. The repository structure follows standard Astro conventions: pages live in src/pages/, reusable pieces go in src/components/, and static files like images go in public/. Building and previewing the site is done with standard npm commands. The README in this repository is the default Astro starter template README and does not describe the content of the site itself. Based on the repository name and description, the project's purpose is to make BEM accessible and easy to understand for people learning frontend web development. The actual explanatory content of the site lives in the MDX and Astro files within the repository rather than in the README. If you want to understand what BEM is, the intended destination is the live site at getbem.com rather than this repository.
← getbem on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.