【发布时间】:2018-07-02 08:31:29
【问题描述】:
我在我的项目中使用材料 Web 组件,我想更改字体系列。我正在浏览他们的documentation,我试图通过在我的 sass 文件中设置变量来做到这一点:
$mdc-typography-font-family: Comfortaa, sans-serif !default;
但是,这不起作用,在文档中它还说 sass mixin 设置了字体:
mdc-typography-base
如何更改 mixin 以使用不同的字体系列?
【问题讨论】:
-
你把
<link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet">加到<head>了吗? -
是的,我做到了,我脑子里有这个
标签: web sass material-components material-components-web