Software Alternatives & Reviews

BEM VS Stylus

Compare BEM VS Stylus and see what are their differences

BEM logo BEM

BEM — Block Element Modifier is a methodology, that helps you to achieve reusable components and code sharing in the front-end.

Stylus logo Stylus

EXPRESSIVE, DYNAMIC, ROBUST CSS
  • BEM Landing page
    Landing page //
    2022-11-21
  • Stylus Landing page
    Landing page //
    2023-03-20

Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.

BEM videos

BEM REVIEW! is Bem worth watching?

More videos:

  • Review - BEM - First Impressions
  • Review - Bem Episode 1 Discussion/ Review BEM HAS THE MUSIC!!!!!

Stylus videos

Best stylus for iPhone! Don't waste your money!

More videos:

  • Review - What is the best iPad stylus?
  • Review - Review: MEKO 2-in-1 Stylus (2nd Gen)

Category Popularity

0-100% (relative to BEM and Stylus)
Developer Tools
36 36%
64% 64
Design Tools
54 54%
46% 46
Browser Extension
0 0%
100% 100
CSS Framework
47 47%
53% 53

User comments

Share your experience with using BEM and Stylus. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare BEM and Stylus

BEM Reviews

We have no reviews of BEM yet.
Be the first one to post

Stylus Reviews

112 Best Chrome Extensions You Should Try (2021 List)
Stylus offers functionality to install and write themes. It is an open-source community-driven extension that makes it much better than its counterparts. Using Stylus, you can install themes from popular repositories, backup your installed styles, and much more. Watch the above video to learn more about Stylus.

Social recommendations and mentions

Based on our record, BEM should be more popular than Stylus. It has been mentiond 43 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

BEM mentions (43)

  • Earth rescue - A CSS only game
    After I had created space, the code was as spaghetti as it can get. I decided to switch to SCSS and finally read into the BEM Pattern for CSS and after wasting another 4 hours, I decided that I could not decide wether the HUD is an element of the game and the button is an element of the HUD and the text is an element of the button and someone else also thought about this and called it the BEM grandchildren... - Source: dev.to / 9 days ago
  • Upgrading and Refactoring a Slightly Outdated Web Project
    There are some conceptual requirements to clean code that I always found hard to achieve in a traditional web project, but that's one more reason to use tools like static site generators and follow design patterns like Atomic Design, (A)BEM CSS, and a modular file structure. - Source: dev.to / about 1 year ago
  • 21 Resources to Learn And Practice Your CSS Skills
    BEM is a methodology for organizing and naming CSS classes in a scalable and maintainable way. Learning the principles of BEM can improve the structure of your stylesheets drastically. - Source: dev.to / 4 months ago
  • StyleX – Meta's Styling Library
    It always surprises me the lengths people are willing to go to avoid writing CSS. If organization is the issue, there's BEM (https://getbem.com/). This just looks like another layer of complexity on top of an already convoluted front-end stack that just slows everything it touches to a crawl and only works moderately well on the developers beefed up latest MacBook Pro's, and sucks horribly on any regular person's... - Source: Hacker News / 5 months ago
  • Incomplete List of Mistakes in the Design of CSS
    I am a reluctant convert to tailwind. I've been doing HTML since the 90s, before CSS was even really usable for things like page layout. I mean, we didn't even use div in those days - it was table based layouts and spacer gifs. CSS appeals to a programmers mindset. Cascading seems like a good idea. Having classes that are reusable seems like a good idea. Complex selectors seem like a good idea. These are all forms... - Source: Hacker News / 5 months ago
View more

Stylus mentions (11)

  • Future of CSS: Functions and Mixins
    Traditionally CSS lacked features such as variables, nesting, mixins, and functions. This was frustrating for Developers as it often led to CSS quickly becoming complex and cumbersome. In an attempt to make code easier and less repetitive CSS pre-processors were born. You would write CSS in the format the pre-processor understood and, at build time, you'd have some nice CSS. The most common pre-processors these... - Source: dev.to / 3 months ago
  • Quick Guide To CSS Preprocessors
    The Stylus is built on Node.js. It differs from Sass and Less, which are more opinionated to the syntax; the stylus allows you to omit semicolons, colons, and braces if you want at any time. Another cool feature is that the stylus has a property lookup feature. You can do that easily if you set property X relative to property Y's value. The stylus can be more concise because of its flexibility, but it depends on... - Source: dev.to / over 1 year ago
  • Install Angular
    Ng new test1 ? Would you like to add Angular routing? Yes ? Which stylesheet format would you like to use? > CSS SCSS [ http://sass-lang.com ] SASS [ http://sass-lang.com ] LESS [ http://lesscss.org ] Stylus [ http://stylus-lang.com ]. - Source: dev.to / over 1 year ago
  • Is there a way to shorten .contactform h2,… and to say something like .contactform (h2, ul, label)?
    First of all, quit using css. get on board Stylus @ https://stylus-lang.com/. Source: over 1 year ago
  • Is a bracket within a bracket possible? (HTML/CSSS)
    The term you are looking for is "nesting". CSS currently does not support it. But there is a draft being worked on. No browser currently supports it, though. Most CSS Pre- or Postprocessors like Sass, Less, Stylus, PostCSS support nesting. Source: over 1 year ago
View more

What are some alternatives?

When comparing BEM and Stylus, you can also consider the following products

Sass - Syntatically Awesome Style Sheets

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.

PostCSS - Increase code readability. Add vendor prefixes to CSS rules using values from Can I Use. Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you.

styled-components - styled-components is a visual primitive for the component age that also helps the user to use the ES6 and CSS to style apps.

Less - Less extends CSS with dynamic behavior such as variables, mixins, operations and functions. Less runs on both the server-side (with Node. js and Rhino) or client-side (modern browsers only).

stylelint - stylelint is a modern CSS linter