# 类别“背景颜色”不明显，指的是类别徽章的颜色

**URL:** <https://meta.discourse.org/t/category-background-color-not-obvious-it-refers-to-the-category-badge-color/59513>\
**Category:** UX\
**Created:** [2017年三月20日 02:42 UTC](https://meta.discourse.org/t/category-background-color-not-obvious-it-refers-to-the-category-badge-color/59513 "2017-03-20T02:42:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Rhidian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhidian/32/176630_2.png) [@Rhidian](https://meta.discourse.org/u/Rhidian)\
**Post date:** [2020年五月3日 17:31 UTC](https://meta.discourse.org/t/category-background-color-not-obvious-it-refers-to-the-category-badge-color/59513/11 "2020-05-03T17:31:50Z")

</div>

如果您使用类别标题组件，类别背景和前景颜色将非常有用。

请在此查看示例：

> [@Discourse Category Headers theme component](https://meta.discourse.org/t/discourse-category-headers-theme-component/148682?u=rhidian):
>
> This theme component provides a number of enhancements for the Discourse category header. The ‘standard’ Discourse category header is displayed at the top of each category page, above the navigation links and list of topics. It is normally only visible if a category logo image has been uploaded in the category settings. The header displays the logo and a short description of the category, taken from the first paragraph of the ‘About the.. category’ topic. This theme component provides the foll…

---

_[View the full topic](https://meta.discourse.org/t/category-background-color-not-obvious-it-refers-to-the-category-badge-color/59513)._
