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

[WIP] real dark #2946

Closed
wants to merge 2 commits into from
Closed

[WIP] real dark #2946

wants to merge 2 commits into from

Conversation

chenshuai2144
Copy link
Collaborator

@chenshuai2144 chenshuai2144 commented Nov 22, 2018

2019-06-01 00 17 31

  • add dark config
  • new theme change function

@netlify
Copy link

netlify bot commented Nov 22, 2018

Deploy preview for ant-design-pro ready!

Built with commit 5d40b45

https://deploy-preview-2946--ant-design-pro.netlify.com

config/config.js Outdated Show resolved Hide resolved
@Anderson-Liu
Copy link
Contributor

Anderson-Liu commented Nov 27, 2018

Hi! I try to design a dark mode's ant design pro dashboard and hope this can help.
And if your guys love this style, maybe we can improve it together.

What it now is(I known, it still work in progress):
image

After design:
image

@chenshuai2144
Copy link
Collaborator Author

@Anderson-Liu email?

@Anderson-Liu
Copy link
Contributor

Anderson-Liu commented Nov 27, 2018

@chenshuai2144 andersion.v#gmail.com

@chenshuai2144
Copy link
Collaborator Author

andersion.v#gmail.com #?

@Anderson-Liu
Copy link
Contributor

Please replace # to @ in andersion.v#gmail.com
Some crawler will find out all email format string in github and send junk email, so I replace @ to #.

@komorebi-san
Copy link

Hey @Anderson-Liu , hows PR coming? :)

@kaoding
Copy link
Contributor

kaoding commented Apr 2, 2019

dark主题,这个怎么推进?

@chenshuai2144
Copy link
Collaborator Author

v4做完我就继续开工。这个还要推动 antd
antd 有个毒瘤。不好解决

@afc163
Copy link
Member

afc163 commented Apr 8, 2019

这个主题直接落到 antd 的 themes 文件夹里吧。

@afc163
Copy link
Member

afc163 commented May 28, 2019

这个还差什么?

@afc163
Copy link
Member

afc163 commented May 28, 2019

https://github.com/ant-design/ant-design-dark-theme

@yutingzhao1991 yutingzhao1991 mentioned this pull request May 28, 2019
23 tasks
@chenshuai2144
Copy link
Collaborator Author

#4356

@nuptcheng
Copy link

大佬们好,请问下我在既有的V2版本基础上使用dark主题,使用umi的方式引入后,出现Header和Footer没有背景色这种情况,想问下V2版本有解决方法么,V4版本我试了下,dark主题是完全可以的

@chenshuai2144
Copy link
Collaborator Author

@nuptcheng 需要设置 less 变量的

@yunsii
Copy link
Contributor

yunsii commented Feb 10, 2020

总结一下。

  1. 安装, npm install @ant-design/dark-theme -S
  2. 引入, 在 /config/config.tsimport darkTheme from '@ant-design/dark-theme';
  3. 使用
export default {
  // ...
  theme: {
    ...darkTheme,
  },
  // ...
}

@shuai4983958
Copy link

Cannot find module 'antd/dist/dark-theme'.
antd 3.x.x

@chenshuai2144
Copy link
Collaborator Author

you can use 1.x,2.x by antd@4

@cang9855
Copy link

cang9855 commented Jun 4, 2020

大神,vue pro里怎么更改主题(风格),官方文档写的就两种,如果自己想改,或者想添加怎么做。实现线上动态切换

@Chenghui-web
Copy link

Chenghui-web commented Jun 18, 2020

总结一下。

  1. 安装, npm install @ant-design/dark-theme -S
  2. 引入, 在 /config/config.tsimport darkTheme from '@ant-design/dark-theme';
  3. 使用
export default {
  // ...
  theme: {
    ...darkTheme,
  },
  // ...
}

我没有/config/config.ts 这个文件 倒是有个theme.js 文件 我有点无从下手~ 拉的代码是夜莺的开源监控系统

@yunsii
Copy link
Contributor

yunsii commented Jun 18, 2020

@Chenghui-web 都是 umi 的配置啊,而且现在官方有个正经的暗黑主题了,参考 ant-design/ant-design#23237 (comment) ,另外,如果你是 umi@3 的话可以直接通过配置开启的,这个 issue 里都有讨论的。

@yangzhenxi
Copy link

大佬们,现在vue pro怎么才能使用RealDark style主题呀!

@maido155
Copy link

总结一下。

  1. 安装, npm install @ant-design/dark-theme -S
  2. 引入, 在 /config/config.tsimport darkTheme from '@ant-design/dark-theme';
  3. 使用
export default {
  // ...
  theme: {
    ...darkTheme,
  },
  // ...
}

great solution!

@yunsii
Copy link
Contributor

yunsii commented Nov 14, 2020

@maido155 现在新版 antd 内置暗色主题了,难度你是使用的旧版?

@wuzhenda
Copy link

darkTheme is too dark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.