-
Notifications
You must be signed in to change notification settings - Fork 23
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
Vuetify SASS variables don't work and broke styles #204
Comments
Minimal reproduction example - https://github.com/itelmenko/nuxt-vuetify-with-module-example
|
Did you tried with |
I encounter the same behavior. |
Can you try following ? @forward 'vuetify/settings' with (
$button-height: 50px,
$messages-font-size: 0.85rem,
$input-details-font-size: 0.85rem,
$messages-min-height: 0.9rem,
$input-details-font-weight: 300,
$text-field-details-padding-inline: 0px
);
@import 'vuetify'; |
It seems that defining a config file is fully overriding the vuetify config |
Interesting... Is it correct way? Did you see it in documentation? |
Using the reproduction with Chrome 123 just works (after an inital delay: using (Same page styles on my local: #204 (comment)) |
@userquin My example works fine for you without changes? With
Could you attach a screen? |
Please add
Or may be you know best way? |
Yes. I see Select was fixed on last screen.
? |
I'm not a SASS expert, you should try also building the reproduction and run the preview ( |
I'm also encountering difficulties with Sass and the Never do this in your vuetfiy Sass file: @import 'vuetify' Becuase it imports all of Vuetify's styles into every component, leading to:
Surely, there must be a better way to handle this. |
I created an issue about this with a reproduction repo #212 |
v0.13.2 fixes this issue, so you just need to use as follows, no additional css imports are required. //nuxt.config.ts
vuetify: {
moduleOptions: {
styles: {
configFile: 'assets/scss/settings.scss',
},
},
}, // assets/scss/settings.scss
@forward 'vuetify/settings' with (
// Buttons
$button-disabled-opacity: 0.5,
); |
Thank you so much! It works excellent! |
npm install -D vuetify-nuxt-module@"^0.13.0" vuetifyjs/nuxt-module#204
I try to use SASS variables. But it don't work and broke styles. I see black borders for inputs. But I didn't add their.
frontend/assets/css/custom/settings.scss
:In
frontend/nuxt.config.ts
:If I remove moduleOptions's content, black borders go away.
vuetify-nuxt-module version: "0.12.0"
The text was updated successfully, but these errors were encountered: