Skip to content

Instantly share code, notes, and snippets.

@anybodesign
Last active July 6, 2018 06:23
Show Gist options
  • Save anybodesign/3954ae559522aa5e41696a66198f0a8e to your computer and use it in GitHub Desktop.
Save anybodesign/3954ae559522aa5e41696a66198f0a8e to your computer and use it in GitHub Desktop.
WordPress Gutenberg Color Palette
// Define your own color palette
add_theme_support( 'editor-color-palette',
array(
'name' => __( 'very dark gray', 'textdomain' ),
'slug' => 'very-dark-gray',
'color' => '#4a4a4a',
),
array(
'name' => __( 'very light gray', 'textdomain' ),
'slug' => 'very-light-gray',
'color' => '#e0e0e0',
)
);
// Disable the color wheel
add_theme_support( 'disable-custom-colors' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment