Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature]: 切换暗色模式时,希望可以跟随主题切换字体颜色 #331

Open
QiuWeimengChan opened this issue Aug 6, 2023 · 3 comments
Labels
compatibility Some styles are not compatible with some themes new feature New feature wontfix This will not be worked on

Comments

@QiuWeimengChan
Copy link

功能描述

图片
bangumi-comments元素都正确使用了主题预设的文章正文字体色(post_text_color)#2c3e50,但是当切换暗色主题时,元素依然保持之前的颜色,无法变成暗色主题预设(post_text_color_dark)的#c4c6c9。请问,这个功能可以实现吗?

@QiuWeimengChan QiuWeimengChan added the new feature New feature label Aug 6, 2023
@mmdjiji
Copy link
Contributor

mmdjiji commented Dec 10, 2023

建议自己适配css,新版本支持为主题自定义css,这是一个很好的解耦设计

@TwooSix
Copy link

TwooSix commented Jul 2, 2024

建议自己适配css,新版本支持为主题自定义css,这是一个很好的解耦设计

你好,我是纯前端小白,请问该如何在插件的css里知道主题是暗色还是亮色模式,从而制定不同的样式?我目前是希望能根据当前的主题,自定义一下插件生成的样式,但搜索了很久资料,也还是不知道该如何兼容暗色和亮色两个模式

@HCLonely HCLonely added wontfix This will not be worked on compatibility Some styles are not compatible with some themes labels Jul 5, 2024
@HCLonely
Copy link
Owner

HCLonely commented Jul 5, 2024

不同主题转换暗色模式的方式不同,不计划适配。可以自定义css进行适配。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Some styles are not compatible with some themes new feature New feature wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants