Skip to content

fix: text contrast issue when system prefers dark mode - #1052

Open
HuLunTunTao wants to merge 3 commits into
RealKai42:masterfrom
HuLunTunTao:fix/system-dark-light-page-text-contrast
Open

fix: text contrast issue when system prefers dark mode#1052
HuLunTunTao wants to merge 3 commits into
RealKai42:masterfrom
HuLunTunTao:fix/system-dark-light-page-text-contrast

Conversation

@HuLunTunTao

Copy link
Copy Markdown

Fixes #1051

修复了 issuw 提到的问题

在对应的元素中设定了text的颜色作为默认颜色,使其在浅色模式下不会被系统更改为深色模式下的颜色,
并且确保修复部分的文本颜色与原本在系统为浅色且网页为浅色的情况下的颜色一致

修复后效果截图:
系统:深色,网页:浅色
b425155487866ad5fcd3dcaa748c629f

@vercel

vercel Bot commented Feb 6, 2026

Copy link
Copy Markdown

@HuLunTunTao is attempting to deploy a commit to the Kai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HuLunTunTao

Copy link
Copy Markdown
Author

@RealKai42 您好,这个 PR 已经提交一段时间了,如果您有空的话希望可以帮忙看一下。

这个PR修复了在系统深色模式与站点深色模式不一致时,部分内容难以辨认的问题。

感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]系统为深色模式且网页设置为浅色模式时部分文本颜色难以辨认

1 participant