Tutorial on using block style variations in WordPress 6.6 #268
Replies: 3 comments
-
Related dev note: WordPress/gutenberg#57908 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This topic has been approved. Please continue the conversation on the issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
@bph @justintadlock I'm closing this as completed. Feel free to re-open if I missed something. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Block style variations will see some major improvements in WP 6.6:
theme.json
, which was previously limited to Core-only variations (styles.blocks.blockName.variations
).styles.blocks.variations
./styles
folder with theblockTypes
property.See:
These are major improvements to the block style variations system that could potentially save 100s of lines of custom CSS and consolidate most theme styling to the standard
theme.json
.It's also a good opportunity to call for testing of potential breaking issues with reduced style specificity:
A tutorial for the Dev Blog would be welcome that explores what each of these changes mean for styling themes and how that compares to what was previously possible. It should also explore any potential pitfalls or areas where you still need to rely on custom code. But the big thing is to share the major "wins" that these update bring to theme design.
A side note to consider: this could be the precursor to opening custom style variations via the Styles panel in the editor UI.
Beta Was this translation helpful? Give feedback.
All reactions