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

how to use custom theme with less #21

Closed
isoloist opened this issue May 11, 2017 · 3 comments
Closed

how to use custom theme with less #21

isoloist opened this issue May 11, 2017 · 3 comments

Comments

@isoloist
Copy link

import my-theme.less in entry.jsx can't work

@eternalsky
Copy link
Member

  1. where does my-theme.less come from?
  2. the way in which you import my-theme.less is unknown.

Could you please support more information about your problem?

@isoloist
Copy link
Author

isoloist commented May 11, 2017

my-theme.less like this
@base-font: tahoma, arial, 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft YaHei', 'SimSun', sans-serif
@brand-primary: #996699
@brand-secondary: #2c2f33
@brand-complement: #00b3e8
@brand-comosite: #00c587
@brand-deep: #996699
@brand-danger: #f04631
@brand-warning: #f5a12a
@brand-success: #66bd5c
@brand-info: #45a8e6
@brand-query: #24bee8
@gray-dark: #333
@gray: #666
@Gray-Light: #999
@gray-lighter: #ccc
@link-color: #3B8FD9
@link-hover-color: #1A78B8
@link-active-color: #1A78B8
@link-visited-color: #73461d
@link-disabled-color: #ccc

@import

add
import '../../css/my-theme.less'
at the head of entry.jsx

i try to change theme in kuma-base

put
@import "~kuma-base/theme/green.less";
@svg-path: '~kuma-base/core/svg/green/';
in my-theme.less

and then add import '../../css/my-theme.less' at the head of entry.jsx, but i still see orange theme

@eternalsky
Copy link
Member

Do you have some error message in your console?

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

No branches or pull requests

2 participants