[wp-meta] [Making WordPress.org] #4392: Add a way to declare a custom color palette in Gutenberg

Making WordPress.org noreply at wordpress.org
Fri Jun 21 08:53:10 UTC 2019


#4392: Add a way to declare a custom color palette in Gutenberg
--------------------------------------+-----------------------
 Reporter:  melchoyce                 |       Owner:  (none)
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:
Component:  WordCamp Site & Plugins   |  Resolution:
 Keywords:  needs-patch needs-design  |
--------------------------------------+-----------------------

Comment (by ryelle):

 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 [https://github.com/ryelle/wc-custom-
 styles/tree/add/custom-colors 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. [https://github.com/ryelle/wc-custom-styles/tree/try
 /custom-colors-screen There's an even less finished prototype here.]

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4392#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list