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

文档网站支持暗黑模式 #1788

Closed
ianzone opened this issue May 2, 2024 · 3 comments
Closed

文档网站支持暗黑模式 #1788

ianzone opened this issue May 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ianzone
Copy link

ianzone commented May 2, 2024

这个功能解决了什么问题?

解决了大晚上看文档亮瞎眼的问题

你期望的功能是怎样的?

提供暗黑模式可选项,或者随系统主题变化

补充信息

稍微讲究开发体验的文档网站都有暗黑模式

Copy link

taro-ui-bot bot commented May 2, 2024

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@robinv8 robinv8 added the enhancement New feature or request label May 13, 2024
@PeiXiaoMeng
Copy link
Contributor

@robinv8 你好,有时间可以看下 #1795

样式仿照的react官网,
通过动态添加className的方式实现了一下暗夜模式,
对于md文档,通过动态添加和删除style样式表的方式改变color,
localstorage缓存 暗夜 / 高亮 状态到本地

@robinv8
Copy link
Member

robinv8 commented May 19, 2024

非常感谢你的代码贡献

@robinv8 robinv8 closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants