在 vuetify 中更改默认字体 [英] Change default font in vuetify
问题描述
我不知道如何更改 vuetify 中的默认字体.我一直在 ./node_modules/vuetify 中寻找正确的变量,但我找不到它.
I can't figure out how to change the default font in vuetify. I've been looking for the right variable within ./node_modules/vuetify, but I can't locate it.
理想情况下,我不会在模块中进行任何更改,而是从模块外部覆盖此类变量.
I'd ideally not make any changes in the module, but would rather override such variables from outside the module.
推荐答案
最简单的方法是简单地在 body
上设置字体系列.如果您正在使用 webpack 并导入 Vuetify 手写笔条目 main.styl
,您可以简单地用您想要的任何字体覆盖 $font-family
变量.
The easiest way would be to simply set the font-family on body
. If you are using webpack and importing the Vuetify stylus entry, main.styl
, you can simply overwrite the $font-family
variable with whatever font you want.
这篇关于在 vuetify 中更改默认字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!