You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `styles` option in `moduleOptions` allows you to configure how Vuetify styles are handled.
4
+
5
+
## Configuration
6
+
7
+
You can configure the styles using the `styles` property in `moduleOptions`.
8
+
9
+
### Basic Usage
10
+
11
+
By default, styles are enabled (`true`). To disable them, set `styles` to `'none'`.
12
+
13
+
```ts
14
+
exportdefaultdefineNuxtConfig({
15
+
modules: ['vuetify-nuxt-module'],
16
+
vuetify: {
17
+
moduleOptions: {
18
+
styles: 'none'
19
+
}
20
+
}
21
+
})
22
+
```
23
+
24
+
### Vuetify 4 Features
25
+
26
+
If you are using Vuetify 4 (or compatible versions), you can configure specific style features like `colors` and `utilities`.
27
+
28
+
-`colors`: Enable/disable the standard colors palette. Default: `true`.
29
+
-`utilities`: Enable/disable the standard utilities. Default: `true`.
30
+
31
+
::: info
32
+
These options are only available for **Vuetify 4**. If you are using Vuetify 3, you should use the `configFile` option for customization.
33
+
:::
34
+
35
+
```ts
36
+
exportdefaultdefineNuxtConfig({
37
+
modules: ['vuetify-nuxt-module'],
38
+
vuetify: {
39
+
moduleOptions: {
40
+
styles: {
41
+
colors: false,
42
+
utilities: false
43
+
}
44
+
}
45
+
}
46
+
})
47
+
```
48
+
49
+
### SASS Customization
50
+
51
+
If you want to customize SASS variables (Vuetify 3+), you can provide a `configFile` path. This allows you to override global and component-level variables.
52
+
53
+
See [SASS Customization](/guide/styling/sass) for a detailed guide.
54
+
55
+
```ts
56
+
exportdefaultdefineNuxtConfig({
57
+
modules: ['vuetify-nuxt-module'],
58
+
vuetify: {
59
+
moduleOptions: {
60
+
styles: {
61
+
configFile: 'assets/settings.scss'
62
+
}
63
+
}
64
+
}
65
+
})
66
+
```
67
+
68
+
When using `configFile`, you can also enable [Experimental Caching](/guide/styling/caching) to improve build performance.
0 commit comments