vuetify-nuxt-module: Vuetify SASS variables don't work and broke styles
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:
@use '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
);
In frontend/nuxt.config.ts:
...
moduleOptions: {
styles: {
configFile: 'assets/css/custom/settings.scss',
},
},
...
If I remove moduleOptions’s content, black borders go away.
vuetify-nuxt-module version: “0.12.0”
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Comments: 20 (7 by maintainers)
v0.13.2 fixes this issue, so you just need to use as follows, no additional css imports are required.
Thank you so much! It works excellent!
I’m also encountering difficulties with Sass and the
vuetify-nuxt-module🙃Never do this in your vuetfiy Sass file:
Becuase it imports all of Vuetify’s styles into every component, leading to:
Surely, there must be a better way to handle this. If anyone has discovered a solution or workaround, I’d greatly appreciate your insights and suggestions!