Replies: 4 comments 7 replies
-
cc @WordPress/block-themers for good measure :) |
Beta Was this translation helpful? Give feedback.
-
I would appreciate being able to style patterns with "section styles" rather than including the actual HEX values (or even color presets) within the pattern markup. This way the pattern can be reused across all themes that define these section styles, and will always look ace—as each theme decides what those variations of color are. |
Beta Was this translation helpful? Give feedback.
-
When I first heard about the idea of section specific style variations this came to my mind: Having the ability to essentially use all of the style options available in theme.json but apply it to only a specific section. Meaning you would be able to fully customize the style of any nested block within that section. Kind of like Figma tokens work where you can create alternate variations of tokens and then when you move an element from one section to another section it changes all its styles based on the container. |
Beta Was this translation helpful? Give feedback.
-
Currently we have to register pattern/component color variations with separate pattern files. If this control were in place we could cut down the amount of pattern files we include in the theme by moving these options to user selectable styling. For example, a text-media component will often have three color variations: primary, dark, light. This results in 3 pattern files with the same block code, with only the color attributes changing. In certain instances, it is necessary to set the width settings as well. They are often set on wrapper blocks: It would be nice to set the label of the section styling selection/variation. I imagine main variations for the theme that could be used across patterns/components could be set in theme.json but customized on a per pattern/component basis if needed. So we could set a “Primary/Default” style, have a dark style and a light style, etc. I can provide specific examples if more clarification is needed, thank you! |
Beta Was this translation helpful? Give feedback.
-
Pulling from this last week's hallway hangout on WordPress 6.5, I wanted to create a place where folks could share feedback about the ways in which they imagine using section specific styling to help shape the present and future of this feature.
What is the feature?
How do you imagine using this?
If possible, please help review the current state of this work and consider what limitations come to mind. cc @fabiankaegy
Beta Was this translation helpful? Give feedback.
All reactions