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

**URL:** <https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644>\
**Category:** Support\
**Created:** [2022年四月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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)\
**Post date:** [2022年四月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.

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

---

<div class="post-metadata">

**Author:** ![glimfeather](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/glimfeather/32/257582_2.png) [@glimfeather](https://meta.discourse.org/u/glimfeather)\
**Post date:** [2022年四月29日 09:41 UTC](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644/2 "2022-04-29T09:41:29Z")

</div>

> [@piffy](#):
>
> 主题的风格非常刻意，并且只有搭配附带的配色方案才有意义。

不知道患有[梅尔斯-艾伦综合征](https://irlen.com/what-is-irlen-syndrome/)的用户将如何应对这样的功能。

---

<div class="post-metadata">

**Author:** ![piffy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/piffy/32/254198_2.png) [@piffy](https://meta.discourse.org/u/piffy)\
**Post date:** [2022年四月30日 03:29 UTC](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644/3 "2022-04-30T03:29:29Z")

</div>

> [@glimfeather](#):
>
> 想知道患有[梅尔斯-艾伦综合征](https://irlen.com/what-is-irlen-syndrome/)的用户将如何应对这样的功能。

我理解您的担忧，但我确实提到过，我只想限制两种主题中的一种。更不用说这个“功能”在这个元站点上已经存在了，因为根本没有颜色方案可供选择！

---

<div class="post-metadata">

**Author:** ![glimfeather](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/glimfeather/32/257582_2.png) [@glimfeather](https://meta.discourse.org/u/glimfeather)\
**Post date:** [2022年四月30日 10:40 UTC](https://meta.discourse.org/t/restrict-color-schemes-available-to-certain-themes/225644/4 "2022-04-30T10:40:27Z")

</div>

很有趣的想法，但如果社区成员患有夜盲症，默认主题是否也会引起他们的不适？
