Created
May 31, 2020 16:22
-
-
Save michaeltieso/2b24c8fac49119b2bbb85bc54f71c4c6 to your computer and use it in GitHub Desktop.
Gutenburg Default Colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gutenburg Default Colors | |
*/ | |
add_theme_support( 'editor-color-palette', array( | |
array( | |
'name' => __( 'Ecru', 'custom_colors' ), | |
'slug' => 'ecru', | |
'color' => '#BCAF83', | |
), | |
array( | |
'name' => __( 'Olive Green', 'custom_colors' ), | |
'slug' => 'olivegreen', | |
'color' => '#B4AF51', | |
), | |
array( | |
'name' => __( 'Olive', 'custom_colors' ), | |
'slug' => 'olive', | |
'color' => '#697200', | |
), | |
array( | |
'name' => __( 'Antique Bronze', 'custom_colors' ), | |
'slug' => 'antiquebronze', | |
'color' => '#5A580E', | |
), | |
array( | |
'name' => __( 'Bistre', 'custom_colors' ), | |
'slug' => 'bistre', | |
'color' => '#2A1B06', | |
), | |
array( | |
'name' => __( 'Black', 'custom_colors' ), | |
'slug' => 'black', | |
'color' => '#000000', | |
), | |
array( | |
'name' => __( 'White', 'custom_colors' ), | |
'slug' => 'white', | |
'color' => '#ffffff', | |
), | |
) ); | |
/** | |
* Disable Default Colors | |
*/ | |
add_theme_support( 'disable-custom-colors' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment