O
O
Omniverse2017-02-12 05:12:55
Sass
Omniverse, 2017-02-12 05:12:55

How to use sass variables from bootstrap?

Hello.
How to use sass variables from bootstrap in laravel application?
By default bootstrap is already installed in laravel.
In app.scss file connects

@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

I have my own scss file, for example example.scss
where I set my variable, to which I assign a variable from bootstrap
$my-var: $line-height-computed;
In app.scss I include my file:
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

@import "example";

I'm running gulp, but I'm getting an undefined variable $line-height-computed error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Medvedev, 2017-02-12
@lifestar

I do like this

@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";

0
0xD34F, 2017-10-02
@DrunkMaster

It is possible so .
Or so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question