# 如何创建主题（如果我只是一个普通终端用户）

**URL:** <https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689>\
**Category:** Support\
**Created:** [2021年八月17日 08:48 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689 "2021-08-17T08:48:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ar\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ar_d/32/231040_2.png) [@Ar\_D](https://meta.discourse.org/u/Ar_D)\
**Post date:** [2021年八月17日 08:48 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/1 "2021-08-17T08:48:02Z")

</div>

正如我之前提到的，我只是论坛的普通用户，对 HTML/CSS 了解不多，仅掌握基础知识和语法。我想为 Discourse 论坛（我常访问的那个）贡献一个主题或布局。那么，制作主题或布局需要哪种编程语言？我希望这个主题现代且美观，类似于 Twitter 或 Instagram 的风格。

我并非开发人员，甚至是在学校阅读计算机书籍时才开始学习 HTML/CSS 的。是否有专为普通用户设计的额外程序，简单易懂？或者，你们是否有制作类似 Instagram 风格的 Discourse 主题的优质教程？

* * *

# 开发者

由于我不确定此话题最适合放在哪个分类，你们可以将我的主题重新归类到正确的位置，例如 #contribute:ux。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年八月17日 12:37 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/2 "2021-08-17T12:37:53Z")

</div>

请查看 [Discourse Theme CLI（帮助你构建主题的控制台应用）](https://meta.discourse.org/t/discourse-theme-cli-console-app-to-help-you-build-themes/82950) 和 [Discourse 主题开发者指南](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)。我认为这是起步的最佳选择。

---

<div class="post-metadata">

**Author:** ![zavorio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zavorio/32/225332_2.png) [@zavorio](https://meta.discourse.org/u/zavorio)\
**Post date:** [2021年八月17日 14:10 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/3 "2021-08-17T14:10:10Z")

</div>

@Ar_D 我目前也处于类似的情况（不过我已经开始使用该主题了）。我建议你查看这些主题帖。起初，你可以先关注前三个链接，等你对操作有了更清晰的了解后，再深入研究最后两个。

1. [Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)
2. [Designer's Guide to getting started with themes in Discourse](https://meta.discourse.org/t/designers-guide-to-discourse-themes/152002)
3. [Theme Creator, create and show themes without installing Discourse!](https://meta.discourse.org/t/theme-creator-create-and-show-themes-without-installing-discourse/84942)
4. [Get started with Theme Creator and the Theme CLI](https://meta.discourse.org/t/beginners-guide-to-using-theme-creator-and-theme-cli-to-start-building-a-discourse-theme/108444)
5. [Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648)

仅使用主题生成器（Theme Creator）的默认功能，你就能取得很大进展。我也尝试过使用主题命令行工具（Theme CLI）（这是我第一次设置如此复杂的东西，我还是个新手），发现它在快速反馈设计变更方面极其有用。总的来说，我极其有限的 HTML/CSS 知识已经帮了我大忙。

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021年八月17日 14:47 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/4 "2021-08-17T14:47:35Z")

</div>

> [@zavorio](#):
>
> 我尝试使用了 Theme CLI（这是我第一次设置如此复杂的东西，我还是个新手），发现它在快速反馈任何设计更改方面非常有用。

是的，能够在电脑上的真实编辑器中进行修改，保存后立刻看到效果，这确实是一大优势。但正如你所建议的，在投入时间研究 CLI 工具之前，先在网页界面中做一些简单的更改（比如我通常会设置 `color: red`，以便确认修改生效）来确认自己“有所行动”是非常有道理的。不过，如果你打算花超过一小时的时间折腾主题，那么学习使用 CLI 工具绝对值得，因为这份投入很快就会得到回报。

---

<div class="post-metadata">

**Author:** ![Ar\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ar_d/32/231040_2.png) [@Ar\_D](https://meta.discourse.org/u/Ar_D)\
**Post date:** [2021年八月18日 06:47 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/5 "2021-08-18T06:47:50Z")

</div>

您已经清楚地给出了分步解决方案，谢谢。

感谢 @pfaffman 分享这个 CLI 工具。

---

<div class="post-metadata">

**Author:** ![Ar\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ar_d/32/231040_2.png) [@Ar\_D](https://meta.discourse.org/u/Ar_D)\
**Post date:** [2021年八月18日 11:23 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/6 "2021-08-18T11:23:01Z")

</div>

我最近注意到，CLI 只有在通过 WSL 运行时才有效，但我从不运行任何 Linux 应用。而且，我使用的系统由于某些可能的 bug 无法打开 Microsoft Store，加之我运行的是最新构建版本，甚至无法更新 Windows。

因此，我认为 CLI 对我来说已不再有用。我需要在虚拟机上安装 Linux，尽管我的网速很慢。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年九月17日 11:23 UTC](https://meta.discourse.org/t/how-to-create-a-theme-if-i-am-a-pure-end-user/200689/7 "2021-09-17T11:23:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
