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

请问通过roadhogrc-theme配置的antd主题,在antd-mobile项目上不生效 #136

Closed
felixzxk opened this issue Feb 20, 2017 · 6 comments
Assignees
Labels

Comments

@felixzxk
Copy link

请问我要如何配置antd-mobile主题?我看antd-mobile的className都有个‘am-’前缀,这个前缀在配置theme时是否可用?希望大神指点~
roadhogrc
{
"theme": "src/theme.js",
}

theme.js
/eslint-disable/
module.exports = () => {
return {
"@font-family": "Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif",
"@primary-color": "#1DA57A",
"@link-color": "#1DA57A",
"@border-radius-base": "2px",
"@font-size-base": "14px",
"@line-height-base": "1.2"
};
};

@caigehui
Copy link

caigehui commented Mar 3, 2017

我也遇到了这个问题

@paranoidjk
Copy link
Collaborator

稍后我会在官方Demo里加一个roadhog使用的demo

请关注这里 https://github.com/ant-design/antd-mobile-samples

@paranoidjk paranoidjk self-assigned this Mar 3, 2017
@paranoidjk
Copy link
Collaborator

官方Demo已增加与Roadhog配合使用的demo

https://github.com/ant-design/antd-mobile-samples/tree/master/antm-roadhog

包括:

  • svg 配置
  • rem 配置
  • theme 配置

@kangning1206
Copy link

@paranoidjk
Copy link
Collaborator

@Lie8466
Copy link

Lie8466 commented Jul 13, 2018

之前工程里面没有用less,为了改主题引入了太多的包

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

No branches or pull requests

5 participants