A Payload site, ready to clone

Placeholder: layered waves in teal

Any block can have the project’s own styles

Styles of the project, on any block

Every block comes with its styles, and editors choose one in the block’s Style list. A project can now add its own to any block, the Hero, Prose or Call to action included. A style can be CSS only, the block’s markup with its own look, or rendered by a template of the project’s, for a block that should look quite different.

Defaults and hidden styles

A project also chooses which style a new block gets, and hides the built-in styles it doesn’t use, so editors only see what fits the site. A block saved with a hidden style, or one the project no longer declares, shows with the default, and its saved value is kept.

Checked when the site starts

A template with no component, a style name without the project’s prefix, or a default that is hidden stop the site at start, naming the problem.

Block styles, in the demo

Every block style side by side.

Open Block styles