Add oik-block/blockstyles
block to display information about a block's styling
#44
Labels
enhancement
New feature or request
With Full Site Editing coming along soon, a block's CSS styling may be defined using
theme.json
and the block'sblock.json
file.As I understand it, the theme can override the block's default styling by using
theme.json
And I imagine other code can override the block's styling during registration.
But how can you tell, in advance from the front end, how the block's
settings
andstyling
are defined?The
block.json
file defines the defaultsupports
and the names of the style files for the block: editor and front end.eg for the cover block
There are sections in
theme.json
which definesettings
, which I believe are similar tosupports
, and others which define thestyles
.The
settings
may or may not trump the block'ssupports
valuesand the
styles
define the allowed values for the theme.Requirement
Proposed solution
The text was updated successfully, but these errors were encountered: