-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to modify SASS variables of a vuetify component? #198
Comments
I am having the same problem. Some SASS variables can be edited (like The variables that can be edited, can be edited in this way: // nuxt.config.js
vuetify: {
moduleOptions: {
styles: { configFile: 'assets/vuetify.scss' }
}
} And the scss file: @use 'vuetify' with (
// This variable can be changed
$grid-breakpoints: (xs: 0,
sm: 768px,
md: 992px,
lg: 1200px,
xl: 1900px),
// This variable cannot be changed
$body-font-family: 'Open Sans' sans-serif,
); If someone knows how to change all available variable, and specifically the font settings, please help! |
check nuxt channel in vuetify discord server: https://discord.com/channels/340160225338195969/1198016523873308745 |
Thank you for the suggestion. I am still getting an error about the fact that the module is alreadt loaded: How did you solve this? |
Oh, I mistyped something. It works in my code with |
Another solution can be found here on Discord: https://discord.com/channels/340160225338195969/1198016523873308745/1209515947342176296 |
Thanks for the quick reply! I also tried that before but in that case all my vuetify css is completely gone. Could it be that it is needed to first import the whole 'default' css file and only overwrite the desired SASS variables? |
I don't know. Maybe you need to add You could als have a look in the Vuetify Discord. Some other suggestions are given there. |
Hello,
I am trying to change some SASS variables for the v-date-picker from vuetify but I can't make it work yet. I checked the documentation from vuetify itself and some issue reports from nuxt about this topic but I'm not sure what the best approach is when using the vuetify-nuxt-module.
What would be the correct steps to modify the SASS variable of a vuetify-compent?
Any help much appreciated!
The text was updated successfully, but these errors were encountered: