How to add custom formats to WordPress’ block editor inline formatting toolbar
The inline formatting toolbar includes format options like bold, italic, inline code… The best part is you can add custom formats.
In a recent project, I used custom formats for different bold formats. The client’s visual identity has two main colours, so in headings, you can use the common bold in the same colour of the heading — black-ish — or use one of the two brand colours. This adds some variety to content-dense pages.