# 限制某些主题可用的配色方案？

**URL:** <https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644>\
**Category:** Product Support\
**Created:** [2022 年4 月 29 日 05:25 UTC](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644 "2022-04-29T05:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)\
发布日期： [2022 年4 月 29 日 05:25 UTC](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644/1 "2022-04-29T05:25:09Z")

</div>

我有两种不同的主题可供用户选择。一种是中性主题，配色方案并不重要。另一种主题采用非常独特的设计风格，并且只有与其配套的配色方案搭配使用才有意义。有没有办法限制给定主题的配色方案？

我看到这里有一些关于这个问题的讨论，但没有明显的解决方案

> [@Color schemes should be specific to a single theme](https://meta.discourse.org/t/color-schemes-should-be-specific-to-a-single-theme/93290/9):
>
> My call is that adding “flavors” to the current theme system is adding complexity. When you look at a theme now you know it is 1 thing. The proposal here make you look at a theme and it could be 8 things.

我是否应该要求用户每次更改主题时都手动配对正确的配色方案？

---

_[View the full topic](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644)._
