# 我想更改我的“注册”和“登录”按钮的背景颜色

**URL:** <https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209>\
**Category:** Feature\
**Created:** [2020年四月8日 02:55 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209 "2020-04-08T02:55:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenwraight](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zenwraight](https://meta.discourse.org/u/zenwraight)\
**Post date:** [2020年四月8日 02:55 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/1 "2020-04-08T02:55:27Z")

</div>

所以我编辑了文件 app/assets/stylesheet/common/base/header.scss，修改了登录按钮和注册按钮的背景颜色设置，并重启了服务。但我没有看到变化。我找对文件了吗？

---

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2020年四月8日 03:03 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/2 "2020-04-08T03:03:00Z")

</div>

您是否先尝试过修改配色方案？

管理 → 自定义 → 颜色

---

<div class="post-metadata">

**Author:** ![zenwraight](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zenwraight](https://meta.discourse.org/u/zenwraight)\
**Post date:** [2020年四月8日 03:07 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/3 "2020-04-08T03:07:27Z")

</div>

我没试过这个，怎么让角落也变成圆角？

---

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2020年四月8日 03:19 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/4 "2020-04-08T03:19:42Z")

</div>

试用 Discourse 按钮样式组件：

> [@Discourse Button Styles](https://meta.discourse.org/t/discourse-button-styles/88154?u=omarfilip):
>
> This theme component includes basic settings for changing button colors without writing CSS. [Github repo](https://github.com/awesomerobot/discourse-button-styles): https://github.com/awesomerobot/discourse-button-styles Installation: [Installing a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) Preview: [Example of what you can style with the settings in this theme](https://theme-creator.discourse.org/theme/awesomerobot/button-styles) What the settings look like: There are 6 button sets that can be styled in this component, along with a global style for adding rounded corners to all buttons (border-radius): basic bu…

---

<div class="post-metadata">

**Author:** ![zenwraight](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zenwraight](https://meta.discourse.org/u/zenwraight)\
**Post date:** [2020年四月8日 03:46 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/5 "2020-04-08T03:46:15Z")

</div>

谢谢，但那我该如何激活这些设置？还是说它们会自动生效？

---

<div class="post-metadata">

**Author:** ![zenwraight](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zenwraight](https://meta.discourse.org/u/zenwraight)\
**Post date:** [2020年四月8日 03:47 UTC](https://meta.discourse.org/t/i-want-to-change-background-color-of-my-sign-up-and-login-button/147209/6 "2020-04-08T03:47:18Z")

</div>

啊，明白了，我需要在设置中选择主题，并选中浅色主题，明白了。
