我尝试使用 SASS / Gulp 在 Bootstrap 4 中实现 Google 字体(Dosis)。说到 SASS,我完全是新手。
我设法_custom.scss通过定义来更改默认颜色$brand-primary,但是当我想通过更改$font-family-sans-serif值对字体执行相同操作时,它不起作用。我重新启动了服务器并将 Google 字体包含在带有link标签的 index.html 中......但我仍然无法让它工作。
_custom.scss
$brand-primary
$font-family-sans-serif
link
bootstrap-4 google-fonts
bootstrap-4 ×1
google-fonts ×1