Skip to content

Instantly share code, notes, and snippets.

@michaeltieso
Created May 31, 2020 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeltieso/2b24c8fac49119b2bbb85bc54f71c4c6 to your computer and use it in GitHub Desktop.
Save michaeltieso/2b24c8fac49119b2bbb85bc54f71c4c6 to your computer and use it in GitHub Desktop.
Gutenburg Default Colors
/**
* 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