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

Undefined variable: "$brand-primary". #113

Closed
zh-wowtv opened this issue Jul 28, 2016 · 4 comments
Closed

Undefined variable: "$brand-primary". #113

zh-wowtv opened this issue Jul 28, 2016 · 4 comments

Comments

@zh-wowtv
Copy link

zh-wowtv commented Jul 28, 2016

Here is my user.scss:

.login-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    background: $brand-primary;
    text-align: center;
    color: #fff;
    padding: 3em;
}

In my Javascript:

import 'bootstrap-loader';
import './user.scss';

I got this error message. But isn't $brand-primary a bootstrap variable? What could be the reason? Can anybody help?

@Phyks
Copy link
Contributor

Phyks commented Jul 29, 2016

Same problem here.

From this I guess this way does not work. But then, I am not sure how to access Bootstrap variables from a CSS module… =(

@bennettrogers
Copy link

Here you go: #9

@Phyks
Copy link
Contributor

Phyks commented Jul 31, 2016

Thanks a lot! Maybe this is something worth mentionning in the README?

@justin808
Copy link
Member

@Phyks We'd really appreciate a PR on the README.md for this!

Phyks added a commit to Phyks/bootstrap-loader that referenced this issue Jul 31, 2016
Add some doc about using variables and mixins from Bootstrap, as discussed [here](shakacode#113) and [here](shakacode#9 (comment)).
@Phyks Phyks mentioned this issue Jul 31, 2016
justin808 pushed a commit that referenced this issue Aug 1, 2016
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
justin808 pushed a commit that referenced this issue Aug 1, 2016
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
justin808 pushed a commit that referenced this issue Aug 4, 2016
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
justin808 pushed a commit that referenced this issue Aug 31, 2016
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
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

4 participants