现在blueprint的主要css文件有一些类pt-intent-primary, pt-intent-success, pt-intent-warning;
等。我想更改其中某些类的默认颜色。我应该在我的代码中导入其源.scss文件(如果是如何?)或者我应该从给定的.scss文件单独构建.css文件,然后使用它。
答案 0 :(得分:12)
This Github issue thread提供了有关如何自定义Blueprint颜色的一些很好的信息。简而言之,您应该在更改所需的所有颜色变量后导入蓝图的Sass源。
$pt-intent-primary: blue;
@import "~@blueprintjs/core/src/blueprint.scss";