Need advice about which tool to choose?Ask the StackShare community!

BEM

121
95
+ 1
0
Foundation

1.2K
1.2K
+ 1
740
Add tool

BEM vs Foundation: What are the differences?

BEM (Block Element Modifier) and Foundation are two popular front-end development methodologies and frameworks used to build responsive and maintainable websites.

  1. Naming Convention: BEM uses a naming convention that helps developers better understand the structure of the code by naming blocks, elements, and modifiers. Foundation, on the other hand, provides a flexible framework with pre-styled components and utilities that simplify building responsive websites.

  2. Modularity: BEM emphasizes modularity by breaking down components into blocks, elements, and modifiers, promoting reusability and a more organized codebase. Foundation offers pre-built modules and components that can be easily integrated into a project without the need for extensive customization.

  3. Flexibility: Foundation provides a more flexible approach to styling and layout, allowing developers to customize the framework to suit their specific design needs. BEM, on the other hand, focuses on maintaining a consistent naming convention and structure throughout the codebase, which can sometimes limit flexibility.

  4. Community Support: BEM has a strong community of developers who advocate for its benefits and best practices, making it easier for new developers to learn and adopt the methodology. Foundation, being a widely-used framework, has a larger community with extensive documentation and resources for developers to access.

  5. Design Patterns: BEM follows a specific design pattern that promotes consistency and predictability in the codebase, making it easier to collaborate with other developers and maintain code quality. Foundation, while providing a solid foundation for building websites, may require additional effort to enforce consistent design patterns and coding standards across projects.

In Summary, BEM focuses on modularity and maintainability through a strict naming convention, while Foundation offers flexibility and pre-styled components for building responsive websites.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of BEM
Pros of Foundation
    Be the first to leave a pro
    • 160
      Responsive grid
    • 93
      Mobile first
    • 80
      Open source
    • 75
      Semantic
    • 72
      Customizable
    • 52
      Quick to prototype
    • 50
      Simple ui
    • 45
      Fast
    • 44
      Best practices
    • 39
      Easy setup
    • 6
      Neutral style
    • 6
      HTML, SCSS and JS
    • 5
      Accessibility support
    • 5
      Professional
    • 3
      Xy grid
    • 2
      Sass
    • 2
      Every new version is smaller, smarter & more efficient
    • 1
      Robust

    Sign up to add or upvote prosMake informed product decisions

    Cons of BEM
    Cons of Foundation
      Be the first to leave a con
      • 5
        Requires jQuery
      • 4
        Awful site

      Sign up to add or upvote consMake informed product decisions

      What is BEM?

      This methodology was developed at Yandex with the goals in mind that Fast development and long-lasting results for standard projects,A project involves many people,Scalable teams,Code reuse.

      What is Foundation?

      Foundation is the most advanced responsive front-end framework in the world. You can quickly prototype and build sites or apps that work on any kind of device with Foundation, which includes layout constructs (like a fully responsive grid), elements and best practices.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use BEM?
      What companies use Foundation?
      See which teams inside your own company are using BEM or Foundation.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with BEM?
      What tools integrate with Foundation?
        No integrations found

        Blog Posts

        GitHubGitSlack+30
        27
        18325
        What are some alternatives to BEM and Foundation?
        SUIT CSS
        SUIT CSS provides a reliable and testable styling solution for component-based web application development.
        CSS Modules
        It is a CSS file in which all class names and animation names are scoped locally by default. The key words here are scoped locally. With this, your CSS class names become similar to local variables in JavaScript. It goes into the compiler, and CSS comes out the other side.
        Bootstrap
        Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
        Material Design for Angular
        Material Design is a specification for a unified system of visual, motion, and interaction design that adapts across different devices. Our goal is to deliver a lean, lightweight set of AngularJS-native UI elements that implement the material design system for use in Angular SPAs.
        Animate.css
        It is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.
        See all alternatives