WordPress / theme-experiments

Experimenting with themes made out of blocks.
GNU General Public License v2.0
546 stars 180 forks source link

Remove Color Palette & Font Sizes from PHP #210

Closed pbking closed 3 years ago

pbking commented 3 years ago

Since the Editor Color Palette and Editor Font Sizes are expressed in theme.json there isn't a need to ALSO express that configuration via PHP.

This change removes the PHP configuration relying exclusively on JSON configuration.

Testing

To test load the Gutenberg Block Editor and select a Button (or another block that allows for color customizations that include gradient) and note that the palette options available before this change remains unchanged.

image

Note the same for available Font Sizes: image