gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Explore improvements to Styles panel in site editor

Open jameskoster opened this issue 2 years ago • 14 comments

styles

Currently the Styles panel offers access to a subset of functionality like swapping style variations and viewing the Style Book.

There's opportunity to explore designs that surface additional options here such as font pairings and color palettes. The Frame paradigm could also be extended, for instance a block type it (and its states) could appear isolated in the Frame as it is being worked on. Perhaps there could be an option to view a curated grid of Frames (templates) while styling globally?

Elevating the entire Styles panel into the site editor (as explored in https://github.com/WordPress/gutenberg/issues/50924#issuecomment-1580720872) is an intriguing idea worth exhausting too.

jameskoster avatar Aug 09 '23 17:08 jameskoster

Noting this prior feedback and discussion as well when we begin thinking about this work: https://github.com/WordPress/gutenberg/issues/50924

annezazu avatar Aug 09 '23 20:08 annezazu

https://github.com/WordPress/gutenberg/assets/1072756/a1de96b7-1034-49cd-be5a-641710bcce63

This is a slightly outdated concept but sharing here in case it spurs on other ideas. The general thought it the Styles section could be used to set presets and element styles. Missing from the video is style variation selection which should be included at the top like this.

image

The stylebook is the default view but you should be able to navigate through your site as you're styling globally.

In the scenarios where you want to modify something globally while editing locally we can lean more in to the "push globally" action within a local block.

SaxonF avatar Oct 06 '23 02:10 SaxonF

https://github.com/WordPress/gutenberg/assets/1072756/534bafad-0da9-4deb-879e-f2bced9b6938

Iterating on the above. I'd like to try this in a branch to see how it feels.

SaxonF avatar Nov 16 '23 05:11 SaxonF

This looks great.

I really like the idea of the active variation persisting with customisations indicated by the blue dot. It could be a convenient way to reset a single variation, or even 'Save as...'.

Do you think the Styles panel remains accessible in the full screen editor, or is there just a shortcut from there to here?

jameskoster avatar Nov 16 '23 11:11 jameskoster

Thanks for sharing that demo! I very much appreciate how what you shared communicates the global part of global styles. It’s a much better mental model and I think folks might appreciate the sidebar section going away to avoid accidentally clicking on it. I know that has continually tripped folks up and hasn't helped with explaining how changing the styles there won't just impact what they are seeing in the editor currently.

annezazu avatar Nov 20 '23 22:11 annezazu

Sorry, I posted on the wrong issue.

Comment moved to

  • https://github.com/WordPress/gutenberg/issues/55647#issuecomment-1830899407

ramonjd avatar Nov 28 '23 01:11 ramonjd

As we think about improvements to the Styles panel and how this new experience might look, I wanted to cross connect folks asking for the ability to expose Styles to classic themes as part of the broader experience to look at these changes through: https://github.com/WordPress/gutenberg/issues/41119

Building out more functionality for Styles tied to a stylebook would, IMO, make this easier to make happen.

annezazu avatar Dec 10 '23 19:12 annezazu

Due to lack of movement, punting to 6.6.

annezazu avatar Jan 29 '24 16:01 annezazu

I really love this direction, @SaxonF! This view gives the styles feature a lot more room to breathe and feels at home in a more global context with patterns, template parts, etc.

To me, currently it feels cramped in an already very busy editor sidebar. We're mixing global and local contexts, which makes it hard for users to understand what exactly they are changing. "Am I changing just the styles for this page?"

As mentioned, users will likely want to see their site while also making these changes. Usually they are changing styles because of a certain page or section they are working on, and they want to see how these new styles affect that content.

As far as the current panel goes, if we went this direction, we'd probably have to remove it. It would be confusing having two entirely different interfaces for global styles.

For a smooth transition, if they click a Styles shortcut from within a post/page in the editor, what if we persisted that page once they hit the new Styles view? That would cut down on a jarring transition and they wouldn't have to go navigate back to that page manually. Of course we'd want a way to toggle the stylebook still.

mikemcalister avatar Feb 18 '24 13:02 mikemcalister

site-editor-styles.1.mp4 Iterating on the above. I'd like to try this in a branch to see how it feels.

I try exactly the same thing here. i thinks we need to go in that direction #59675

unprintedch avatar Mar 08 '24 03:03 unprintedch

https://github.com/WordPress/gutenberg/assets/1072756/534bafad-0da9-4deb-879e-f2bced9b6938

Iterating on the above. I'd like to try this in a branch to see how it feels.

I like it a lot. I would not open a white panel and keep the drill menu. Sometime screen size is critical for editors.

unprintedch avatar Mar 10 '24 03:03 unprintedch

Bringing in feedback and a design idea from a separate thread to ensure it's easier to find. This was not done by me and was done by @unprintedch:

What is your proposed solution?

When you enter the editor and then style you are offered pre-defined setting. Could we have the setting that are present later on Capture d’écran 2024-03-07 à 15 17 51 Like: DEFAULT STYLE

  • Site logo and favicon
  • Typography (police, weight, size and colors)
  • Color palette
  • Spacing (basic default)
  • Forms? Per block global settings > See capture below
Capture d’écran 2024-03-07 à 18 38 07

I thinks it will also solve the site icon/favicon problem.

annezazu avatar Mar 13 '24 16:03 annezazu

There's opportunity to explore designs that surface additional options here such as font pairings and color palettes.

Color and typography presets have been added via https://github.com/WordPress/gutenberg/pull/59594.

richtabor avatar Mar 21 '24 18:03 richtabor

Hi folks, We are only one week away from the Beta 1 cut-off date for WordPress 6.6. This issue hasn’t seen any movement in a while, so we (the editor triage leads of the 6.6 release) have decided to remove it from the WordPress 6.6 Editor Tasks project board.

colorful-tones avatar May 22 '24 18:05 colorful-tones

Is this still relevant? Now that we have color palettes and typography presets in the styles view, and https://github.com/WordPress/gutenberg/pull/65619 is moving along, this doesn't read as relevant/actionable.

richtabor avatar Oct 23 '24 15:10 richtabor

Indeed, I created a new issue, #66376, which perhaps we can close this issue in favor of.

jasmussen avatar Oct 23 '24 16:10 jasmussen

Sounds good, closing.

richtabor avatar Oct 23 '24 17:10 richtabor