prestarocket-agence / classic-rocket

Classic Rocket is a rework of "classic theme". It has been built keeping in mind : performance, accessibility and SEO.
https://demoprestashop.prestarocket.com/
Other
230 stars 127 forks source link

Why BEM? #116

Closed redactuk closed 4 years ago

redactuk commented 4 years ago

I'm curious why the move to BEM when Prestashop is predominantly based on Bootstrap?

I have used BEM on some projects, but only where whole project uses it. What I don't understand is why use it when parent or base project does not. To me it's a confusing mix.

In last classic-rocket version we stripped it out and replace BEM classes, reverting back to using Boostrap, simply because it seems to overlap unnecessarily with bootstrap, with lots of instances of duplication.

Of course you are free to do whatever you want. I just wanted to understand why the need for it.

Thanks

prestarocket commented 4 years ago

Hello @redactuk , we want to use BEM on specific components; for ex., on product cards, product cart line etc.. if the use of BS class is usefull, we could extend it. The goal is to make the theme easier to maintain