-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Explore block style variations as packages of style attributes #33232
Copy link
Copy link
Closed
Labels
[Feature] Block VariationsBlock variations, including introducing new variations and variations as a featureBlock variations, including introducing new variations and variations as a feature[Feature] Theme Style VariationsRelated to style variations provided by block themesRelated to style variations provided by block themes[Type] DiscussionFor issues that are high-level and not yet ready to implement.For issues that are high-level and not yet ready to implement.
Metadata
Metadata
Assignees
Labels
[Feature] Block VariationsBlock variations, including introducing new variations and variations as a featureBlock variations, including introducing new variations and variations as a feature[Feature] Theme Style VariationsRelated to style variations provided by block themesRelated to style variations provided by block themes[Type] DiscussionFor issues that are high-level and not yet ready to implement.For issues that are high-level and not yet ready to implement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This stems from #33157 and older threads such as #22208 (comment)
Example: tt1-blocks theme
I've looked at what the TT1-blocks theme needs for styling in CSS. A large part of its styles is block style variations. This is what the theme has to do to set up the block style variations it wants.
Register its own block style variations:
after_setup_theme) and for the front-end (via hooking intowp_enqueue_scripts).Unregister existing block styles variations it doesn't want active:
enqueue_block_editor_assetsso it takes effect.