# 在主题方面遇到困难

**URL:** https://meta.discourse.org/t/having-a-hard-time-with-themes/357740
**Category:** Support
**Created:** [2025年三月18日 12:37 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740 "2025-03-18T12:37:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [2025年三月18日 12:37 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/1 "2025-03-18T12:37:43Z")

</div>

我猜这应该是个简单的任务，但事实并非如此。  
在我安装 Discourse 时，我只有黑暗主题。我想要一个浅色主题，所以我只是导出了黑暗主题，然后导入了它（我认为有一个复制按钮会让这个过程更简单快捷）。

当我导入它时，即使我将调色板更改为浅色（默认），当我将浅色主题设置为默认主题时，它仍然是深色的，即使在刷新页面后也是如此。我选择允许用户更改主题，但侧边栏中没有更改它的选项。

 ![SCR-20250318-ldlq](https://global.discourse-cdn.com/meta/original/4X/d/5/a/d5a256c6d35f62d90b917b355189a45e386e2555.png)

* * *

我错过了什么吗？

 ![SCR-20250318-ldnz](https://global.discourse-cdn.com/meta/original/4X/4/e/2/4e25440668f3b9aab78030687fc352c469192c7b.png)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2025年三月18日 13:03 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/3 "2025-03-18T13:03:57Z")

</div>

您的设备/浏览器是否设置为深色模式？因为如果系统配置为深色模式，并且您配置了 `默认深色模式配色方案 ID` 设置，则浅色主题将被系统偏好设置覆盖，并应用深色方案。

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [2025年三月18日 13:07 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/4 "2025-03-18T13:07:17Z")

</div>

> [@dax](#):
>
> 默认暗色模式配色方案 ID

我在哪里可以查看此设置？

我已经将设备设置为暗色模式，但例如，我可以在 Discourse 论坛上更改为亮色模式。

为什么我在侧边栏看不到更改主题的下拉菜单？

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2025年三月18日 13:16 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/5 "2025-03-18T13:16:08Z")

</div>

> [@alltiagocom](#):
>
> 我在哪里可以检查这个？

您的站点设置。

> [@alltiagocom](#):
>
> 我的设备设置为黑暗模式，但例如我可以在 Discourse 论坛上将其更改为浅色。

Meta 上未启用该设置

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/2/dc26dee81b104c4982511ae38c8fac6a0df8e6a4.png)

> [@alltiagocom](#):
>
> 为什么我无法在侧边栏中看到更改主题的下拉菜单？

因为您需要安装相应的主题组件，[Sidebar Theme Toggle](https://meta.discourse.org/t/sidebar-theme-toggle/242802)

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [2025年三月18日 13:20 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/6 "2025-03-18T13:20:09Z")

</div>

> [@dax](#):
>
> Meta 上未启用该设置

我的也没有

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/d/9/1d9f216a063fcc0f22f29b7fe91f7d56774a6c3b.png)

例如，我安装了一个新主题，当我单击“预览”按钮时，我可以看到新主题，但当我尝试导入的主题执行相同的操作时，它不会更改。

导出 \> 导入工作流是复制主题的最佳方式吗？因为也许有什么东西影响了它？

> [@dax](#):
>
> 因为你需要安装正确的主题组件

我以为这是一个核心功能。谢谢。

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [2025年三月18日 13:29 UTC](https://meta.discourse.org/t/having-a-hard-time-with-themes/357740/7 "2025-03-18T13:29:13Z")

</div>

> [@dax](#):
>
> 因为您需要安装合适的主题组件，[Sidebar Theme Toggle](https://meta.discourse.org/t/sidebar-theme-toggle/242802)

这对我不起作用。我在这里发了一个[新帖子](https://meta.discourse.org/t/sidebar-theme-toggle/242802/36?u=alltiagocom)，如果您不介意检查一下的话？
