# 颜色调色板设置未被反映

**URL:** <https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034>\
**Category:** Development\
**Created:** [2025年一月26日 05:41 UTC](https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034 "2025-01-26T05:41:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![traceymoko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/traceymoko/32/483235_2.png) [@traceymoko](https://meta.discourse.org/u/traceymoko)\
**Post date:** [2025年一月26日 08:54 UTC](https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034/7 "2025-01-26T08:54:48Z")

</div>

我查看了文件的语法。在我以前的调色板方案中，每个十六进制字符串都没有 `#`。

> <https://github.com/tracey-le/arctic-sunrise-theme/blob/35a5ad6e5cdb29ac635bccd144aeb9654651eef4/about.json#L14>

如果您将每个十六进制字符串更改为不以 `#` 开头，我认为它可能会正确解析。

> <https://github.com/m1chaeljmk/psychomotor-theme/blob/8bc747cb7c1ef9deb60ff06f67c6f6716f4c9151/about.json#L13>

Discourse 颜色方案的示例指南中也是如此：

> [@Create and share a color scheme](https://meta.discourse.org/t/create-and-share-a-color-scheme/61196#p-280569-fill-in-the-missing-information-in-your-aboutjson-file-5):
>
> Discourse now supports importing color schemes from remote repository. Here I will demonstrate how you would go about doing this. Navigate to colors and add a color scheme. Head to /admin/customize/colors on your site and create a color scheme. Tips: I used a chrome plugin ([color picker](https://chrome.google.com/webstore/detail/colorpick-eyedropper/ohcpnigalekghcmgcdcenkpelffpdolg?hl=en)) to select colors from an existing image of a palette on the web. If you create a theme, assign the color scheme to the theme and preview it, changes will be reflected live. Create a new gi…

```plaintext
{
   "name" : "Solarized",
   "about_url" : "https://github.com/SamSaffron/discourse-solarized",
   "license_url": "https://github.com/SamSaffron/discourse-solarized/blob/master/LICENSE",
   "color_schemes": {
      "Solarized Light": {
        "primary": "586E75",
        "secondary": "EEE8D5",
        "tertiary": "268BD2",
        "quaternary": "CB4B16",
        "header_background": "002B36",
        "header_primary": "93A1A1",
        "highlight": "B58900",
        "danger": "CB4B16",
        "success": "859900",
        "love": "DC322F"
      }
   }
}

```

---

_[View the full topic](https://meta.discourse.org/t/color-palette-settings-are-not-being-reflected/349034)._
