Discourse Meta
如何为深色(或浅色)模式添加特定的 body 类?
支持
jordan.vidrine
(Jordan Vidrine)
2022 年3 月 4 日 15:02
2
您介意解释一下为什么需要在
body
中添加特定的类来支持
dark
或
light
模式吗?
这个核心功能不能满足您的需求吗?
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Color definitions for more than light/dark color schemes
Support
2
494
2024 年1 月 6 日
使用discourse 内置的深浅主题切换,在discourse中如何写dark下的样式,目前没有看到.dark样式
Support
3
62
2025 年8 月 19 日
How to make the automatic dark theme the same as the selected dark theme?
Support
dark-theme
,
dark-mode-toggle
10
323
2024 年12 月 14 日
Is this still the solution for checking for dark mode?
Dev
4
92
2025 年2 月 20 日
How to change css item based on dark or light mode?
Dev
11
2120
2023 年6 月 18 日