# 自定义变量到配色方案

**URL:** <https://meta.discourse.org/t/custom-variables-to-color-schemes/254781>\
**Category:** Feature\
**Created:** [2023年二月10日 15:22 UTC](https://meta.discourse.org/t/custom-variables-to-color-schemes/254781 "2023-02-10T15:22:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2023年二月10日 18:05 UTC](https://meta.discourse.org/t/custom-variables-to-color-schemes/254781/3 "2023-02-10T18:05:21Z")

</div>

> [@FINDarkside](#):
>
> 鉴于无法编写针对特定配色方案的 CSS

如果您希望 CSS 在浅色/深色模式下表现不同，您可以这样做——我们有一个名为 `color_definitions` 的特殊样式表……这里有一个如何使用它的示例：[Why might dark-light-choose() not work? - #2 by awesomerobot](https://meta.discourse.org/t/why-might-dark-light-choose-not-work/172232/2)

---

_[View the full topic](https://meta.discourse.org/t/custom-variables-to-color-schemes/254781)._
