WordPress.org

Making WordPress.org

Opened 3 months ago

Last modified 4 weeks ago

#4392 assigned enhancement

Add a way to declare a custom color palette in Gutenberg

Reported by: melchoyce Owned by:
Milestone: Priority: normal
Component: WordCamp Site & Plugins Keywords: needs-patch needs-design
Cc:

Description

There's no way to overwrite the default color palette in Gutenberg on a WordCamp site. Can we find a way to allow this? Would make it much easier for designers and content creators to coordinate.

Change History (4)

This ticket was mentioned in Slack in #meta-wordcamp by ryelle. View the logs.


3 months ago

This ticket was mentioned in Slack in #meta-wordcamp by coreymckrill. View the logs.


4 weeks ago

#3 @coreymckrill
4 weeks ago

  • Keywords needs-patch needs-design added
  • Status changed from new to assigned

In today's bug scrub, we discussed adding a WordCamp settings sidebar to the block editor UI where a custom color palette (and perhaps other things like in #4389) could be defined by the organizers. Similar to @ryelle's comment here.

#4 @ryelle
4 weeks ago

I have a prototype for this, after WCEU I can clean it up. I tried the gutenberg sidebar way first, but unfortunately the way GB sets up the colors means that we can't seamlessly update without a page reload (because GB reads the colors from a variable set on the page) - you can see this almost working on the prototype (not a stable prototype, and if you download it you'll need to npm install and npm run build to test it), but the colors reset when you update/publish a post.

The other direction I started going was the options page, so you set up your colors in a new page, then they're set as the editor colors when the editor initializes. There's an even less finished prototype here.

Note: See TracTickets for help on using tickets.