Forked from zgordon/gutenberg-color-pallete-theme.php
Last active
February 28, 2018 17:32
-
-
Save theJasonJones/958499b698b8cf77c191c416c63a7b0c to your computer and use it in GitHub Desktop.
Add theme support and set a color palette for all blocks
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
<?php | |
function mytheme_setup_theme_supported_features() { | |
add_theme_support( 'editor-color-palette', | |
'#556270', | |
'#4ECDC4', | |
'#C7F464', | |
'#FF6B6B', | |
'#C44D58' | |
); | |
} | |
add_action( 'after_setup_theme', 'mytheme_setup_theme_supported_features' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment