# 个人资料文字为黄色

**URL:** https://meta.discourse.org/t/profile-text-is-yellow/362037
**Category:** Support
**Created:** [2025年四月16日 07:34 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037 "2025-04-16T07:34:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年四月16日 07:34 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/1 "2025-04-16T07:34:59Z")

</div>

您好，

当我进入论坛上另一位用户的个人资料时，“加入”、“最后发帖：”、“已见”、“浏览次数”等文字显示为黄色，由于背景是白色，因此几乎看不见。

其他一切看起来都很好。有人知道如何让这些文字恢复正常吗？我检查了调色板，但没有找到黄色，所以我不知道为什么它是黄色的。

此致  
Olle

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [2025年四月16日 08:46 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/3 "2025-04-16T08:46:11Z")

</div>

也许您不小心更改了主题中的颜色？

您可以使用本指南来定位这些区域，并将其更改为您想要的颜色。

> [@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 …

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年四月16日 12:26 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/4 "2025-04-16T12:26:53Z")

</div>

根据我在指南中找到的内容来看，似乎并不是这样。我使用的主题在调色板中没有这些颜色，所以我觉得一定是某些HTML/CSS在某个时候被更改了。我完全不记得我改变过这些，而且它如此随机，只有折叠信息面板是这样。我猜我不能在网站文本中更改颜色吗？

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025年四月16日 13:12 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/5 "2025-04-16T13:12:44Z")

</div>

您能分享一下您的论坛网址（也许是私下分享）吗？

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025年四月17日 06:32 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/6 "2025-04-17T06:32:36Z")

</div>

@Olle11 发送了他们的论坛网址给我。

看起来是这样的

![image](https://global.discourse-cdn.com/meta/original/4X/5/6/c/56c16afa3c21e1ba382cd1141a1c04f104adcb16.png)

这个文本的颜色是 `secondary-medium`，计算结果是 `#fafa00`

这是通过将 `secondary` 的亮度降低 50% 计算得出的，`secondary` 设置为 `#fffff4`。

这使得所有由此推导出的颜色都过于偏黄。

![image](https://global.discourse-cdn.com/meta/original/4X/d/0/d/d0de5370c10612e73b827e1045165c8eeb4d2529.png)

@Olle11 解决方案是将调色板中的 `secondary` 颜色设置为 `#ffffff`

### 那么为什么会这样呢？

这不是我第一次看到颜色变得有点“无法控制地奇怪”。

`$secondary-medium: dark-light-diff($secondary, $primary, 50%, -50%) !default;`

ChatGPT 解释道：

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/0/c/00cd673b04081d0698819be0646a594bb9de82b3.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/1/f/4/1f45f7f650c4fb2431818c9f6934ac9084740260.png)

### 那么这是设计如此吗？

是的，但由于配置文件中的值是 `primary`，也许标签应该是 `primary-medium` 而不是 `secondary-medium` 🤔

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [2025年四月17日 10:23 UTC](https://meta.discourse.org/t/profile-text-is-yellow/362037/7 "2025-04-17T10:23:45Z")

</div>

> [@RGJ，帖子:6，话题:362037](#):
>
> ffffff

耶，成功啦，非常感谢你的快速回复！还有关于ChatGPT的有趣发现。颜色可以比想象中更复杂！Primary-medium似乎是解决这一切的好方案：)

此致  
奥勒
