# 主题组件项目有命名约定吗？

**URL:** https://meta.discourse.org/t/is-there-a-naming-convention-for-theme-component-projects/398572
**Category:** Development
**Created:** [2026年三月16日 21:58 UTC](https://meta.discourse.org/t/is-there-a-naming-convention-for-theme-component-projects/398572 "2026-03-16T21:58:42Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [2026年三月16日 22:33 UTC](https://meta.discourse.org/t/is-there-a-naming-convention-for-theme-component-projects/398572/2 "2026-03-16T22:33:02Z")

</div>

我们不强制执行任何命名约定……Discourse 团队通常会用 `discourse-` 作为主题和组件的前缀，但这并非通用做法。

除了目录名称之外，希望自述文件能包含一些上下文信息，说明它是用于 Discourse 的……否则主题和主题组件始终会有一个包含一些信息的 `about.json` 文件，而插件会包含一个 `plugin.rb` 文件。

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-naming-convention-for-theme-component-projects/398572)._
