# 如何自定义类似亚马逊的版块外观？

**URL:** <https://meta.discourse.org/t/how-customize-the-appearance-of-sections-like-amazon/168213>\
**Category:** UX\
**Created:** [2020年十月25日 18:33 UTC](https://meta.discourse.org/t/how-customize-the-appearance-of-sections-like-amazon/168213 "2020-10-25T18:33:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2020年十月26日 09:55 UTC](https://meta.discourse.org/t/how-customize-the-appearance-of-sections-like-amazon/168213/7 "2020-10-26T09:55:36Z")

</div>

啊，我明白了。

正确的做法是将这段 CSS 放入一个主题组件中，这与您当前的操作仅 _略有_ 不同！

如果您编辑的是浅色主题，这些更改不会在深色主题中显示。

请为您的站点的所有本地自定义创建一个统一的主题组件！

> [@Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966):
>
> This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read. What are themes and theme components? A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features. Let’s start with themes. Themes In general, themes are not supposed to be compatible …

---

_[View the full topic](https://meta.discourse.org/t/how-customize-the-appearance-of-sections-like-amazon/168213)._
