-
Notifications
You must be signed in to change notification settings - Fork 111
Section style slugs #3
Comments
Here's a case where the default muted, light, and dark section styles would map great—but if a color variation is much more expressive, then those slug values are much more confusing: 1.mp4 |
Noting this is also being discussed at: WordPress/gutenberg#63036 |
I love the movement toward an interoperable (instead of opinionated) approach and want to adopt whatever we decide here/TT5 in my work with Powder Studio. I can't think of anything better (or more suitable) at the moment than the generic |
Agreed that setting a standard convention here with Twenty Twenty-Five would help the theming community in terms of interoperability and documentation. I'm in favor of I also used this method when naming slugs in the Dev Blog post about section styles (I'm happy to update if we go a different direction). |
I think there will always be a discussion as to how one type of wording is more semantic than another. This approach also has the benefit to translate way better into other languages. |
I'm also in favor of generic slug naming for section styles. Like in spacings. Like, maybe, in all presets, even in colors. |
Can we adopt a similar naming policy for custom block styles that are only applied to one block? Perhaps |
As @richtabor mentioned on our call yesterday, that would generate this: I know because I suggested the same thing with the the same reasoning as you @carolinan. But when he pointed out the above, I thought... Meh, probably not a good idea. |
What about custom-1? |
We should work on Create Block Theme to add support for section styles so they are easier to create without having to code |
For awareness, I took an initial stab at seeing how the |
With section styles landing in WordPress 6.6, let's talk about standardizing the
slug
values within Twenty Twenty Five.Proposal
I've experimented with the Assembler theme, settling on
is-style-section-1
,is-style-section-2
, slugs—as not every color variation has a "light" or "muted" or "dark" style (as some theme style variations are brighter, darker, or more minimal than others).I've found that using a more generic slug will allow for section styles to be more meaning across multiple theme style variations—and also other themes—much like how spacing presets work.
Twenty Twenty Five is a great opportunity to showcase color and typography, especially with section styles across many color variations; we need to account for the variety of color-only theme style variations that may be included in the theme.
We could potentially leverage the pattern directory to make Twenty Twenty Five's patterns available for all WordPress installs leveraging the block editor, which would mean a standard for section styles could be interoperable across any site—no more colors that are fixed in a pattern.
Visual
Section styles, as applied to each pricing table here:
The text was updated successfully, but these errors were encountered: