Color Posts grabs image from your post, samples it, creates color and contrast value, and changes the color to match the image..
It also changes the color of your window Chrome for Android, and customizes the look of AMP default template if you use AMP plugin..
If you're not happy with the automatically picked color, you can define your own custom color thanks to the.
If you'd like to use post colors via REST API, you can use the colors field in the post response..
You can read more about how the plugin works here Color Posts plugin how to use Jetpack libs in your plugin..
Install Color Posts plugin via WordPress org plugin repository, or via your dashboard.
You can build your own CSS from the colors grabbed by the plugin, like so function jeherve use custom colors { $post id = get the ID $tonesque = get post meta extract $colors css =..post color #{$color} } return $colors css } add filter ..
You can do so thanks to the filter, like so function jeherve use custom image { $the image = 'http f.cl.ly items 3z0o2k2F3w0D0p0k1Y35 cool gif Whatever image you want, you could grab it from custom field return esc url } add filter ..
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
If you don't touch the picker, the plugin keeps using the image to calculate post color..
Read more