gutenberg_scaffold_block_style
Register custom CSS style variations for Gutenberg blocks, such as rounded images or shadowed cards, by specifying target block, style name, label, and CSS.
Instructions
Register custom block style variations for existing core or custom blocks (e.g., rounded image, shadowed card).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| targetBlock | Yes | Block to add style to (e.g., "core/image", "core/group") | |
| styleName | Yes | Style slug (e.g., "rounded-shadow") | |
| styleLabel | Yes | Style display label (e.g., "Rounded with Shadow") | |
| textDomain | Yes | Plugin text domain | |
| css | No | CSS for the style variation |