# 是否可以覆盖 Discourse 变量？

**URL:** <https://meta.discourse.org/t/is-that-possible-the-override-discourse-variables/170407>\
**Category:** Support\
**Created:** [2020年十一月17日 22:12 UTC](https://meta.discourse.org/t/is-that-possible-the-override-discourse-variables/170407 "2020-11-17T22:12:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2020年十二月24日 01:49 UTC](https://meta.discourse.org/t/is-that-possible-the-override-discourse-variables/170407/8 "2020-12-24T01:49:09Z")

</div>

@bekircem 我刚刚在 2.7.0.beta1 上测试了向导，可用的字体与你在上面发布的站点设置中列出的相同（我可能遗漏了什么）。

你可能已经解决了，但以防万一，你可以使用 [https://meta.discourse.org/t/google-fonts-theme-component/143720，或者像你在原帖中做的那样替换](https://meta.discourse.org/t/google-fonts-theme-component/143720%EF%BC%8C%E6%88%96%E8%80%85%E5%83%8F%E4%BD%A0%E5%9C%A8%E5%8E%9F%E5%B8%96%E4%B8%AD%E5%81%9A%E7%9A%84%E9%82%A3%E6%A0%B7%E6%9B%BF%E6%8D%A2) CSS 变量——这本来应该能生效。

我在我的实例中使用了以下 CSS，并且它正常工作（通过 `<link/>` 或 `@include` 加载字体）：

```css
:root {
  --heading-font-family: 'Inter', sans-serif;
  --font-family: 'Inter', sans-serif;
}

```

---

_[View the full topic](https://meta.discourse.org/t/is-that-possible-the-override-discourse-variables/170407)._
