Last active
July 6, 2018 06:23
-
-
Save anybodesign/3954ae559522aa5e41696a66198f0a8e to your computer and use it in GitHub Desktop.
WordPress Gutenberg Color Palette
This file contains hidden or 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
// 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