What is a block style?
A block style in WordPress refers to the appearance of a block within the editor. This could be any type of content, from a paragraph to an image or video.
A block style determines a wide range of visual attributes, from color and spacing to even font size. There are default block styles provided for each block type, but you can create your own or use plugins or themes that have their own presets. They are a great and easy method of creating styling for blocks.
Note
In this example, we are using the default theme Twenty Twenty-Four, and later in this chapter, we will use Twenty Twenty-Two. As stated previously, you can use any local setup you want to install this on.
If you do add a block style, that doesn’t have to be the end of your customizations, either. If those settings are available in the theme, you can use the settings on the block on top of that to refine it. Each block style can be changed using a very simple interface. You can also...