Giter VIP home page Giter VIP logo

Comments (8)

kmarryo avatar kmarryo commented on June 5, 2024 6

This is how it worked for me:

  1. Create a new stylus file in your assets/style folder, in my example font.styl
  2. Insert following code into main.styl:
    $body-font-family = Helvetica, Arial, sans-serif // whatever font-family you want to use @import '~vuetify/src/stylus/main'
  3. Don´t forget to add the created file to your nuxt.config.js
    module.exports = { css: ['~/assets/style/app.styl', '~/assets/style/font.styl']

from vuetify-module.

kmarryo avatar kmarryo commented on June 5, 2024 1

@erichodges
You can modify it with normal (s)css. Just overwrite the standard rules. To do this you have at least two possibilities.

  1. Write your css rules into your component´s style tag
    <style scoped> .example { font-weight: 700; font-size: 2.5rem; } </style>
    Note: "scoped"is optional of course. It means the rules only apply on this specific component.
  2. For general stylings like font-size of p and so on you can also create a global css file and include it in your project. To do this, create a new css file inside your assets/style directory and add it to your nuxt.config.js like this:
    module.exports = { css: ['~/assets/style/my-custom-styles.css']}

from vuetify-module.

anteriovieira avatar anteriovieira commented on June 5, 2024 1

Thanks @joostdecock

from vuetify-module.

mk-tool avatar mk-tool commented on June 5, 2024 1

I wrote in default.vue like below.

<style lang="scss">
.application{
  font-family: "xxx";
}
</style>

from vuetify-module.

erichodges avatar erichodges commented on June 5, 2024

How can I modify the font weight/size in a given paragraph or div etc. I'm using the nuxt/vuetify template.

from vuetify-module.

erichodges avatar erichodges commented on June 5, 2024

@kmarryo
Ok cool, thank you!

from vuetify-module.

joostdecock avatar joostdecock commented on June 5, 2024

Not sure why this is still open. The answer by @kmarryo is spot on. Thanks Mario! 👍

from vuetify-module.

gomezmark avatar gomezmark commented on June 5, 2024

@kmarryo

I tried to add the css on module export
but it was override by _reboot.scss.

from vuetify-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.