
內容簡介
Color Posts 外掛會從您的文章中取得一張圖片,對其進行取色取樣,建立出相應的色彩和對比度值(黑色或白色),然後將文章的背景色調整與圖片相匹配。
此外,它還會為 Chrome for Android 調整您的視窗背景色,並在您使用AMP外掛的情況下自定義 AMP 預設模板的外觀。
如果您對自動選擇的顏色不滿意,您可以在文章編輯器中藉由「文章顏色」元框來定義自己的自定義顏色。
如果您想透過 REST API 使用文章顏色,您可以在文章響應中使用 colors欄位。
重要提示: 為了讓這個外掛正常運作,您必須先啟用Jetpack外掛。
如果您發現任何問題,您可以在 這裡回報問題,或通過GitHub 提交請求。
您可以參閱此處以深入了解此外掛如何運作:Color Posts plugin: how to use Jetpack libs in your plugin
外掛標籤
開發者團隊
原文外掛簡介
Color Posts grabs an image from your post, samples it, creates a matching color and a contrast value (black or white), and changes the post’s background color to match the image.
It also changes the background color of your window in Chrome for Android, and customizes the look of the AMP default template if you use the AMP plugin.
If you’re not happy with the automatically picked color, you can define your own custom color thanks to the “Post Color” meta box in the post editor.
If you’d like to use post colors via the REST API, you can use the colors field in the post response.
Important: for this plugin to work, you must activate Jetpack first.
If you find bugs, you can report them here, or submit a pull request on GitHub.
You can read more about how the plugin works here: Color Posts plugin: how to use Jetpack libs in your plugin
