Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize colors in blueprintjs?

Right now what blueprint's main css file has some classes like pt-intent-primary, pt-intent-success, pt-intent-warning; etc. i want to change the default colors of some of these classes. Should i import its source .scss file in my code(if Yes How?) or should i build separately a .css file from .scss file given and then use it.

like image 298
Vikramaditya Avatar asked Jan 27 '17 05:01

Vikramaditya


1 Answers

This Github issue thread provides some good information about how to customize Blueprint's colors. In short, you should import blueprint's Sass source after changing all the color variables you need.

$pt-intent-primary: blue;

@import "~@blueprintjs/core/src/blueprint.scss";
like image 114
Adi Dahiya Avatar answered Nov 05 '22 15:11

Adi Dahiya