Skip to content

Commit

Permalink
14. Customize antd
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 22, 2016
1 parent 91e613b commit d6da33b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .roadhogrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
"entry": "src/index.js",
"disableCSSModules": false,
"publicPath": "/",
"theme": {
"@primary-color": "#1DA57A",
"@link-color": "#1DA57A",
"@border-radius-base": "2px",
"@font-size-base": "16px",
"@line-height-base": "1.2"
},
"autoprefixer": null,
"proxy": {
"/api": {
Expand All @@ -12,7 +19,7 @@
},
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd", "style": "css" }]
["import", { "libraryName": "antd", "style": true }]
],
"env": {
"development": {
Expand Down

11 comments on commit d6da33b

@zhangyezeng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

支持这样吗?theme : "./src/theme.js"

@sorrycc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daibin7
Copy link

@daibin7 daibin7 commented on d6da33b Mar 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dva g component Header
这样创建的是Header.js Header.css
如果想创建Header.js Header.less
怎么配置呢?

@huzhengke
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sorrycc 用上述的方式只能定制主题,但是无法修改and的某个组件的样式。比如:
.avatar-uploader {
display: block;
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
}

@YizhangErro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如何修改覆盖某个 组件的样式呢?我要的不是改变主题,
import { Button, DatePicker} from 'antd';
import "./mystyle.css"
这样子覆盖 没有用啊

@Clish
Copy link

@Clish Clish commented on d6da33b May 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的文件按照上面修改了 没有起作用

@DEV3YeHe
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

希望能改"font-family"

@kodomozz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

具体的一些参数是什么,配置了但是失效

@weidk
Copy link

@weidk weidk commented on d6da33b Nov 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也是,配置了,但是不起作用

@lxc-xx
Copy link

@lxc-xx lxc-xx commented on d6da33b Nov 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也按照这个改了,没有效果

@lxc-xx
Copy link

@lxc-xx lxc-xx commented on d6da33b Nov 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorrycc/roadhog#136
可以看看这个issue

Please sign in to comment.