# 在主题组件中选择深色和浅色

**URL:** <https://meta.discourse.org/t/choosing-between-dark-and-light-colors-in-a-theme-component/180241>\
**Category:** Support\
**Created:** [2021 年2 月 18 日 18:55 UTC](https://meta.discourse.org/t/choosing-between-dark-and-light-colors-in-a-theme-component/180241 "2021-02-18T18:55:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
发布日期： [2021 年2 月 18 日 22:31 UTC](https://meta.discourse.org/t/choosing-between-dark-and-light-colors-in-a-theme-component/180241/3 "2021-02-18T22:31:07Z")

</div>

嗯，是的，我刚才尝试了一下，遇到了同样的问题……看起来即使父主题切换到了不同的配色方案，该组件仍然只能看到默认配色方案。我还没有在组件中使用过颜色定义样式表……@pmusaraj，这曾经有效过吗？还是后来出现了回归问题？

---

_[View the full topic](https://meta.discourse.org/t/choosing-between-dark-and-light-colors-in-a-theme-component/180241)._
