我找到了 Ant Design 适配深浅色自动切换的方法 #34243
Brucia323
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在
App.css
中加入:深色主题的优先级似乎高于浅色主题。
使用
prefers-color-scheme
可以获取浏览器的主题是深色或浅色。Beta Was this translation helpful? Give feedback.
All reactions