Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit Global Styles IA #47369

Open
SaxonF opened this issue Jan 24, 2023 · 10 comments
Open

Revisit Global Styles IA #47369

SaxonF opened this issue Jan 24, 2023 · 10 comments
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@SaxonF
Copy link
Contributor

SaxonF commented Jan 24, 2023

What problem does this address?

The current GS IA looks like:

  • Typography
    • Elements
  • Colours
    • Palette
    • Elements
  • Layout
  • Blocks

This has always felt a tiny bit strange to me because I often just want to focus on styling an element in its entirety (typography and colours) as opposed to focusing on a single style first.

What is your proposed solution?

ia-revamp.mp4

An alternative IA might be:

  • Presets
    • Typography
    • Colours
    • Spacing
    • Layout
    • etc
  • Styles
    • Elements
    • Blocks

Define your presets/foundation then apply them to your site. Setting block presets like palettes is done while editing the block itself.

I've also moved style variation name to the top which we can use to show whether a variation has been modified and if so more closely map the "reset to defaults" action (right now its in top ellipsis). This could be split out into its own issue if we think it makes sense.

This is partially a follow up to #47348 which aims to unify local and global block style inspectors.

cc @WordPress/gutenberg-design

@SaxonF SaxonF added Needs Design Feedback Needs general design feedback. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Jan 24, 2023
@jasmussen
Copy link
Contributor

This has always felt a tiny bit strange to me because I often just want to focus on styling an element in its entirety (typography and colours) as opposed to focusing on a single style first.

This is a good take-away, and I think worth digging into. Before we change the IA, it seems like the consistency you are exploring between panels and GS sections, seems worth refining a bit.

That seems to be the biggest discrepancy right now. If you dive into Global Styles → Blocks → Button, you'll see this:

gs inspector

Note: Typography, Colors, Border, Layout. Compare that with the panels in the post editor inspector:

post inspector

Note: Color, Typography, Dimensions, Border. Moreover, the dimensions tools have been shoved into the Layout panel, because there isn't a "Dimensions" section.

That disconnect is improved in your mockup here, because what panels exist for a block map to panels in global styles. There's some sense to this, not just for the consistency, but also because it allows the very important preview at the top to sit in a stable place across all styles you can change. Right now it's animated and duplicated because you have to drill into sections instead of working with panels:

gallery

That being said, I think it's important to be careful here. I know that the waterfall section navigation was a key aspect to get right for global styles, so it would be good to revisit those original goals before we drop it in favor of panels. It's probably fine, because it's not all the way across, it's just Blocks > Block, but nevertheless good to be sure of.

Furthermore, we can probably start with unifying panels with GS sections before even changing that, that seems valuable on its own.

On a detail, I don't love that the block preview goes edge to edge. It does give us 32px more horizontal space to work with, but it disconnects from the theme stylecard. It might also not scale too well to moving into the dark material to the left of the browse view, which is still something being explored.

@SaxonF
Copy link
Contributor Author

SaxonF commented Jan 25, 2023

Great feedback/thoughts @jasmussen! I think this work could be split into two main projects. The first, which is #47348, is focused on unifying local/global editing of block styles like you mentioned. The second, which is this issue, is focused on updating the IA.

Furthermore, we can probably start with unifying panels with GS sections before even changing that, that seems valuable on its own.

I'm sure there is a way we can break this work down further if needed. It looks like @youknowriad has explored started to explore technical details

@SaxonF
Copy link
Contributor Author

SaxonF commented Feb 24, 2023

Coming back to this, I think it requires a little more thought mostly because setting background colour within elements still feels a little off.

@beckej13820
Copy link

I have an alternative viewpoint here. As a non-designer builder of WordPress pages, I often do not take the time to modify the design of a single element as the @SaxonF says. Probably mostly a difference in competence and goals. What I actually do on my sites, is look for good typography, and look for good colors.

Here's a 40 second clip of me modifying a site with an older customizer theme, Go. I often bring this theme up as a comparison to FSE, because in Go they have 5 presets for typography (Traditional, Modern, Trendy, Welcoming and Playful) and each of the typography settings has 4 color palettes. They also have a Spacing control. So in that way, they are dealing with the same 3 major areas as FSE and doing it with a simplified version of style variations.

The thing that this theme does, is it allows for the three different major areas of Full Site Editing to be changed independently, with logical presets from the designer. Using this theme my workflow is almost the complete opposite to what SaxonF describes. Instead of trying to style 1 single element completely to build a style from, I'm looking for a style preset that meets 90% of my needs and then only tweaking from there. Maybe I set my typography for the whole site, then I pick a color pallette I like mostly, and then change a color or two.

My WordPress role is working with Undergrads who are creating websites, so my preference for simplicity comes from seeing non-designer end users struggle.

Recording.4.mp4

@annezazu
Copy link
Contributor

annezazu commented Apr 22, 2023

Noting some feedback related to the current experience from the FSE Outreach Program's Build A Block Theme exploration:

I find it a bit odd to have some of the Button styles with the Global Typography and Colors, and then again down below in the Blocks, but I guess I don’t have a suggestion, as many people would just want to change button colors and typography, and not padding or spacing , etc.

Edited to add additional feedback from the same exploration related to this:

Styling buttons (the block and elements) is split into “typography” and “colors”. This hierarchy may make sense and it’s a way how many plugins in the past implemented in the customizer. Still another way may be “I want to style buttons, now show me all controls to style buttons”. At the moment one has to go into typography for text and then into color for colors.

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Jul 28, 2023
@creativecoder
Copy link
Contributor

This has always felt a tiny bit strange to me because I often just want to focus on styling an element in its entirety (typography and colours) as opposed to focusing on a single style first.

I've been working with theme builders this week and a related comment came up, specific to wanting to edit typography and colors in the same panel.

@jameskoster
Copy link
Contributor

An observation of the Styles panels given the advent of presets for type and color: I find it a little tricky to interpret and overly complex that presets and the edit experience are displayed together at the same level.

Type Color
Screenshot 2024-03-05 at 13 16 50 Screenshot 2024-03-05 at 13 18 42

It never feels entirely clear whether you're supposed to be selecting a preset, or managing/editing presets... the UI suggests both. I don't know that surfacing these UIs at the same level is altogether helpful. We might explore separating the layers;

  1. Select a preset, IE apply broad-strokes style changes to your site without having to dig into the technicals. This is a more 'end-user' exercise.
  2. Edit and manage presets. This is a more advanced/theme-dev exercise.

A quick mockup:

Screenshot 2024-03-05 at 14 31 15

Perhaps this adds too much friction? I figured it was worth sharing either way, in the spirit that ideas are cheap :)

@beckej13820
Copy link

@jameskoster I really like the way you are splitting those up, and I made a similar comment a year ago.

Once I have done anything on my site, I get really anxious around those preset buttons. What I do now is once a design has been mostly locked, I install the build a block theme plugin from core and save my current settings as a preset. If I've done any amount of customization, the change everything at once is no longer an option.

However, if I knew that what I was doing would only impact typography or impact colors without typography, then it would be much more approachable.

@madhusudhand
Copy link
Contributor

An alternative IA might be:
Presets
- Typography
- Colours
- Spacing
- Layout
- etc
Styles
- Elements
- Blocks

Adding Shadows to the discussion.
I think with this initial thought, shadows panel (create/edit) goes under Presets menu.

@jasmussen
Copy link
Contributor

Had a quick conversation around these, and we discussed how background color, gradient, and image, are all parts of the same, and it may be good as a minimal step towards better global styles IA, to just add a “Background” item here that combine these three (right now "Background" lives under "Color).

For example the sizing controls and repeat options that exist in context of the new background image tools, but in fact they affect the background gradient as well. This is the case both for global styles, and for the Group block tools.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
Status: 📋 Backlog
Development

No branches or pull requests

8 participants