Change default font in vuetify

前端 未结 13 1695
[愿得一人]
[愿得一人] 2020-12-14 16:19

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

13条回答
  •  盖世英雄少女心
    2020-12-14 16:59

    This solution work on Vue-CLI>=3

    First of all you must install sass-loader

    npm install sass sass-loader fibers deepmerge -D
    

    You should first create "sass" folder in the "src" directory, then create a "variables.scss" file in this directory.

    Then write the below code in this file.

    $ body-font-family: Your-FontName
    @import '~vuetify/src/styles/settings/_variables.scss';
    

    You need to restart your project now.

提交回复
热议问题