M
M
MaxKondratenko2018-07-27 08:13:12
Yii
MaxKondratenko, 2018-07-27 08:13:12

How to overwrite Bootstrap Variables in yii2?

I am new to yii2.
Something I don’t know at all in which direction to dig. The bootstrap is installed via composer and now I want to overwrite some variables before building it, pulling the entire bootstrap in the frontend seems like a wrong idea to me, since it is already brought into the project, but here's how I can put my _variables.scss between the standard _variables.scss and the one what is going after it... , plus everything, for example, in backedn I want to use one _variables.scss, and in frontend another? is it possible without dragging the whole bootstrap?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Popov, 2018-07-27
@MaxKondratenko

Before connecting to SCSS, create a variables.scss file, where and override these variables.
Example:

@import('variables.scss');
@import('~bootstrap');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question