ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.28k stars 8.14k forks source link

🧐[问题 | question]如何修改默认样式之后兼容明暗模式 #10045

Closed xiahller closed 2 years ago

xiahller commented 2 years ago

🧐 问题描述 | Problem description

如何修改默认样式之后兼容明暗模式

想用antdpro自带的组件修改一下样式之后,再兼容明暗模式

💻 示例代码 | Sample code

🚑 其他信息 | Other information

OS:

Node:

浏览器 | browser:

github-actions[bot] commented 2 years ago

以下的 Issues 可能会帮助到你 / The following issues may help you

chenshuai2144 commented 2 years ago

https://ant.design/docs/react/customize-theme-cn#Ant-Design-%E7%9A%84%E6%A0%B7%E5%BC%8F%E5%8F%98%E9%87%8F

可以使用 antd 的 less 变量来设置颜色,不要用自定义的就可以兼容了