Using Block Lab Pro, you can build custom blocks and export them to a blocks.json
file and include them in your theme for distribution.
This requires Block Lab Pro.
You can create your blocks using the Block Lab UI in any old dev install of WordPress. You can then export them from the list of blocks, either individually or as a bulk action, and you’ll get a JSON file called blocks.json
.

Now, if you include a folder called /blocks/
in your theme, and put the blocks.json
file there (along with any associated templates), the blocks will be automatically registered by Block Lab, which will need to be active on the site.