-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[WIP] real dark #2946
[WIP] real dark #2946
Conversation
chenshuai2144
commented
Nov 22, 2018
•
edited
Loading
edited
- add dark config
- new theme change function
Deploy preview for ant-design-pro ready! Built with commit 5d40b45 |
@Anderson-Liu email? |
@chenshuai2144 andersion.v#gmail.com |
andersion.v#gmail.com #? |
Please replace # to @ in andersion.v#gmail.com |
Hey @Anderson-Liu , hows PR coming? :) |
dark主题,这个怎么推进? |
v4做完我就继续开工。这个还要推动 antd |
这个主题直接落到 antd 的 themes 文件夹里吧。 |
这个还差什么? |
大佬们好,请问下我在既有的V2版本基础上使用dark主题,使用umi的方式引入后,出现Header和Footer没有背景色这种情况,想问下V2版本有解决方法么,V4版本我试了下,dark主题是完全可以的 |
@nuptcheng 需要设置 less 变量的 |
总结一下。
export default {
// ...
theme: {
...darkTheme,
},
// ...
} |
Cannot find module 'antd/dist/dark-theme'. |
you can use 1.x,2.x by antd@4 |
大神,vue pro里怎么更改主题(风格),官方文档写的就两种,如果自己想改,或者想添加怎么做。实现线上动态切换 |
我没有/config/config.ts 这个文件 倒是有个theme.js 文件 我有点无从下手~ 拉的代码是夜莺的开源监控系统 |
@Chenghui-web 都是 umi 的配置啊,而且现在官方有个正经的暗黑主题了,参考 ant-design/ant-design#23237 (comment) ,另外,如果你是 umi@3 的话可以直接通过配置开启的,这个 issue 里都有讨论的。 |
大佬们,现在vue pro怎么才能使用RealDark style主题呀! |
great solution! |
@maido155 现在新版 antd 内置暗色主题了,难度你是使用的旧版? |
darkTheme is too dark. |