This is how it worked for me:
font.styl$body-font-family = Helvetica, Arial, sans-serif // whatever font-family you want to use
@import '~vuetify/src/stylus/main'module.exports = {
css: ['~/assets/style/app.styl', '~/assets/style/font.styl']How can I modify the font weight/size in a given paragraph or div etc. I'm using the nuxt/vuetify template.
@erichodges
You can modify it with normal (s)css. Just overwrite the standard rules. To do this you have at least two possibilities.
<style scoped>
.example {
font-weight: 700;
font-size: 2.5rem;
}
</style>module.exports = { css: ['~/assets/style/my-custom-styles.css']}@kmarryo
Ok cool, thank you!
Not sure why this is still open. The answer by @kmarryo is spot on. Thanks Mario! :+1:
Thanks @joostdecock
@kmarryo
I tried to add the css on module export
but it was override by _reboot.scss.
I wrote in default.vue like below.
<style lang="scss">
.application{
font-family: "xxx";
}
</style>
Most helpful comment
This is how it worked for me:
font.styl$body-font-family = Helvetica, Arial, sans-serif // whatever font-family you want to use @import '~vuetify/src/stylus/main'module.exports = { css: ['~/assets/style/app.styl', '~/assets/style/font.styl']