Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize Bootstrap installed from npm

I am using webpack to require Bootstrap, so I install bootstrap from npm, but I also want to customize Bootstrap by modify 'variables.less', It cause a problem, the next time I upgrade Bootstrap from npm, my modification is gone, so what should I do?

like image 361
Littlee Avatar asked Aug 26 '15 02:08

Littlee


1 Answers

You can easily overwrite LESS variables in your own custom file outside of Bootstrap. As long as you @import the file with your Bootstrap variable overwrites after you @import all of the Bootstrap LESS files, you'll be fine.

like image 100
Shane Cavaliere Avatar answered Sep 19 '22 12:09

Shane Cavaliere