Comments (8)
This is how it worked for me:
- Create a new stylus file in your assets/style folder, in my example
font.styl
- 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'
- 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.
@erichodges
You can modify it with normal (s)css. Just overwrite the standard rules. To do this you have at least two possibilities.
- 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. - 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.
Thanks @joostdecock
from vuetify-module.
I wrote in default.vue
like below.
<style lang="scss">
.application{
font-family: "xxx";
}
</style>
from vuetify-module.
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.
@kmarryo
Ok cool, thank you!
from vuetify-module.
Not sure why this is still open. The answer by @kmarryo is spot on. Thanks Mario! 👍
from vuetify-module.
I tried to add the css on module export
but it was override by _reboot.scss.
from vuetify-module.
Related Issues (20)
- Object literal may only specify known properties, and 'vuetify' does not exist in type 'NuxtConfig'. HOT 2
- How can I use nuxt vuetify-module in specific layout and its pages?
- null model for v-tabs-items causes different output in SSR and client
- [BUG] Long load time in Chrome, hang in Firefox due to long icon loading HOT 8
- [BUG] The contents of v-card children are duplicated when an anchor tag is added HOT 3
- Installing problem on cpanel/nodevenv
- v-virtual-scroll component is missing HOT 1
- How to locally install material icons?
- Vue 2.7 compatibility HOT 3
- nuxt-bridge not being rendered on server side
- Cannot read properties of undefined (reading 'resolveAlias') with Nuxt3 HOT 2
- A v-form nested inside another v-form is a production silent bomb.
- Vuetify 3 release HOT 7
- vuetify not initialized HOT 1
- nuxtjs/vuetify (1.12.3) - Not working due to sass loader issue HOT 1
- Breadcrumbs component: clicking on the breadcrumb causes the site to rerender
- Module cases "JavaScript heap out of memory"
- Syntactically wrong css generation due to very old sass version
- Nuxt 3 Support HOT 8
- Need way to move vuetify-theme-stylesheet from top of head section to any position
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuetify-module.