Allow ref
to groups of settings in theme.json
.
#56104
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
At the moment, you can only
ref
to another single value intheme.json
, but quite often you might want different elements/blocks to share the same settings. For example, thecore/post-title
block you may wish to have the same settings as thecore/heading
block so that the post-title inherits any settings for heading such as typography and font-sizes.Another example where this would make perfect sense would be the
core/query-pagination-next
andcore/query-pagination-previous
- typically I'd expect most themes to want these two blocks to share the same settings/styles and at the moment duplication is required in order to achieve this.What is your proposed solution?
To enable
ref
to refer to a whole section of settings intheme.json
. Effectively have the following example work as you'd expect.In this instance, I would expect the
core/heading
andcore/post-title
should inherit the same settings, and thecore/query-pagination-next
andcore/query-pagination-previous
should share the same styles.The text was updated successfully, but these errors were encountered: