Plugin generator to extend Core Block style and variation

Extend block core style and/or add block core variation

Plugin header

Declare Plugin Header
NB: Plugin Name will also be used to prefixe function.

Extend Block Core Style

The registerBlockStyle function allows you to register a new style to block to give alternative way.

NB: If you use it, all fields are required to generate code!

Core block to extend
core/
Custom css for Core block
a new .is-style-"name" class can be used for the block. Add belowyour css statements like this: property:value;

Create block variation

The registerBlockVariation function allows you to define variants of a block. Each variant can set their own icon, title, and default values.
Typically, embeds are variations of the block embed.

Embeds variations Blocks

NB: If you use it, all fields are required to generate code!

Core block base
core/
Search for icon in Dashicons
Css for Variation Block
Class .is-"variation-name" can be used for the block. Add below your css statements like this: property:value;

Plugin Generated

PHP

/* nothing yet... */

JS

/* nothing yet... */

CSS

/* nothing yet... */