Hello! This is the latest roundup of theme-related discussions, fixes, and developments in Gutenberg from the 13.7 release of the plugin.
Post Title block now supports text-decoration (#42328)
The Post Title Block now supports `text-decoration`, which means it is now possible to control the text-decoration for this block in the Global Styles interface or in theme.json, for example:
"core/post-title": {
"typography": {
"textDecoration": "underline"
}
},
Spacing size presets added to theme.json settings (#41527)
Previously, the spacing design options in the editor such as padding, margin, and gap only allowed the setting of custom values. In order to help keep a theme design consistent, this PR allows theme authors to specify a pre-defined list of spacing sizes. This also allows a standard list of space presets to be easily transferred across themes. This works in a similar way to the existing list of font size presets.
To add preset spacing sizes, add `spacingScale` and/or `spacingSizes` to a theme.json file. You can see an example of this being set in a theme here, and used here in theme.json and here in a column block.
Expanded the templates that can be added via the editor (#41875)
In GB 13.7, users can now add many more types of templates via the Site Editor, including templates for custom taxonomies, and specific terms, categories, and tags. To test this out, go to Templates in the editor, click ‘Add New’, and see the full list of templates that are now available.
Style all heading elements together (#41981)
Previously, heading elements such as H1, H2, H3, etc could only be styled individually in theme.json. This change enables themes to set style rules for all heading elements together using the `heading` property, for example:
"heading": {
"color": {
"background": "blue"
}
},
Link :hover state control added to global styles UI (#41976)
Users can now set the :hover interactivity state for top-level link elements via the global styles interface, making it easier for end-users to edit this setting.
Set blockGap value for specific blocks (#40875)
As part of PR #40875, users can now set a `blockGap` value for specific blocks in theme.json and in the Global Styles interface, for example:
"styles": {
"blocks": {
"core/buttons": {
"spacing": {
"blockGap": "6px"
}
}
}
},
Other notable changes
- Comments block: Remove stray legacy class from edit (#42335)
- Global styles: filter block level styles before compiling global stylesheet (#42207)
- Try tabs instead of segmented control for switching between solid/gradient in color panels (#41937)
General Resources:
- Full Site Editing Milestones
- GitHub Issues: Full Site Editing
- GitHub Issues: Themes
- Block-based Themes Reference
- Block-based Themes Tutorial
- Experimental-Themes.json
- Using the Block Editor for Theme Parts
- Printing navigation-block HTML from a legacy menu in themes
Thanks to @mmaattiiaass and @pbking for the help putting this together!
Please comment if there’s something you’d like to highlight 🙂