# 分类徽章样式

**URL:** <https://meta.discourse.org/t/category-badge-styles/285320>\
**Category:** Theme component\
**Tags:** official, category-badge-styles\
**Created:** [2023年十一月13日 13:40 UTC](https://meta.discourse.org/t/category-badge-styles/285320 "2023-11-13T13:40:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Post date:** [2023年十二月24日 18:52 UTC](https://meta.discourse.org/t/category-badge-styles/285320/2 "2023-12-24T18:52:36Z")

</div>

刚切换到这个，大部分样式都恢复了，但是否可以在 style 属性中添加 `#color: FOREGROUND-COLOUR` 呢？

所以这样：

```plaintext
Style Attribute {
--category-badge-color: #0;
--category-badge-text-color: #865ac9;
}

```

会变成这样：

```plaintext
Style Attribute {
--category-badge-color: #0;
--category-badge-text-color: #865ac9;
color: #865ac9;
}

```

然后变成这样：

 ![Screenshot 2023-12-24 at 18.44.10](https://global.discourse-cdn.com/meta/original/4X/4/3/e/43e03d706c0de7abb89216ecb959ae6403fc2ae0.png)

（或者我可以在本地安装上自己完成这个操作吗？）

---

_[View the full topic](https://meta.discourse.org/t/category-badge-styles/285320)._
