自定义Bootstrap 4 CSS [英] Customizing Bootstrap 4 css
问题描述
我正在关注此链接: 文档
I am following this link: Docs
具体来说: 使用内置的自定义变量文件自定义Bootstrap 4,并使用新的$ enable- * Sass变量轻松切换全局CSS首选项.覆盖变量的值,并根据需要使用随附的Gruntfile重新编译.
我以前从未使用过Gruntfile.我可以使用其他工具将CSS编译为CSS吗?另外,这种编译的结果将是什么? _custom.css是否必须放在原始bootstrap.css所在的文件夹中?
I have never used Gruntfile before. Can I use other tools to compile scss into css? Also, what the outcome of such compilation is going to be? A _custom.css that must be placed in the same folder where original bootstrap.css is?
感谢您的帮助.
推荐答案
虽然没有像 3.x版中已有,有几种工具可以做到这一点.这些都可以从SASS转换为CSS,如果您不熟悉SASS,则可以提供一些UI.
While there is not an "official" Bootstrap 4 customizer like there was in 3.x, there are several tools that can do this. These all convert from SASS to CSS, and some provide a UI if you're not familiar with SASS.
也请参阅此答案,以获取有关如何使用CSS覆盖或SASS进行自定义的详细信息.
Also see this answer for details on how to customize with CSS overrides or SASS.
这篇关于自定义Bootstrap 4 CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!