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

有关主题设计的建议 #1241

Closed
liekkas opened this Issue Mar 21, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@liekkas
Contributor

liekkas commented Mar 21, 2016

您好,为了制作一套黑色主题的皮肤,我把相关组件的less样式文件翻了个遍,里面很多基于浅色系的硬编码,比如下拉框的白色背景色,这使得单修改一个custom.less文件还远不够。也许是我还没找到更好的方式?

我想了解下ant-design会针对主题设计出一套更为优雅的机制来方便大家定制主题吗?

我用过echarts、material-ui组件,它们提供一个设置主题的api接口,只需要赋一个js对象就能定制一套皮肤,建议ant-degsin也可以提供一个类似的api接口。

若有违你们的设计理念,那可以再丰富下custom.less的变量,少些硬编码,尽量做到一个文件就能搞定主题。

感谢你们的努力。

@afc163

This comment has been minimized.

Member

afc163 commented Mar 21, 2016

Ant Design 的设计初衷就是预设一套强烈风格化的主题,减少(也不希望)各种样式上的定制,提高开发效率,现阶段官方只支持和推荐进行主色定制。

目前我们的设计师也在梳理各种样式变量,后续会支持一定程度内更自由的主题定制。到时前端框架层面也会有相应的统一支持。

现阶段如果有变化较大的定制需求,可能需要一些(痛苦的)样式覆盖 ~

@lock

This comment has been minimized.

lock bot commented May 6, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.