Gutenberg tries to follow BEM naming convention which is a good thing. However there are inconsistencies here and there.
Button block have good example with class names wp-block-button and wp-block-button__link:
<div class="wp-block-button aligncenter">
<a class="wp-block-button__link" href="https://themebeans.com">Center Aligned Button</a>
</div>
Then again for example columns have:
<div class="wp-block-columns has-2-columns">
<div class="wp-block-column">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Sed posuere consectetur est at lobortis. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec sed odio dui. Nulla vitae elit libero, a pharetra augue.</p>
</div>
<div class="wp-block-column">
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Sed posuere consectetur est at lobortis. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec sed odio dui. Nulla vitae elit libero, a pharetra augue.</p>
</div>
</div>
With BEM naming classes should probably be wp-block-columns and wp-block-columns__column.
Inconsistencies with has-* and is-* classes.
For example column block have good has-2-columns class. But pretty much all the others like Latest post grid or galleries the class is columns-2. It should be has-2-columns.
Conclusion
I can check all the class names and update this ticket later but it would be super nice to have consistent class names before the launch.
Gutenberg tries to follow BEM naming convention which is a good thing. However there are inconsistencies here and there.
Button block have good example with class names
wp-block-buttonandwp-block-button__link:Then again for example columns have:
With BEM naming classes should probably be
wp-block-columnsandwp-block-columns__column.Inconsistencies with
has-*andis-*classes.For example column block have good
has-2-columnsclass. But pretty much all the others like Latest post grid or galleries the class iscolumns-2. It should behas-2-columns.Conclusion
I can check all the class names and update this ticket later but it would be super nice to have consistent class names before the launch.