Skip to content

Commit f979ec4

Browse files
committed
fix: inline vuetify config so it can be overridden downstream
1 parent ad0cbe2 commit f979ec4

File tree

2 files changed

+25
-28
lines changed

2 files changed

+25
-28
lines changed

src/module.ts

+25-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,31 @@ export default defineNuxtModule<ModuleOptions>({
100100

101101
// Modules
102102
await installModule('vuetify-nuxt-module', {
103-
vuetifyOptions: resolver.resolve('./runtime/vuetify.config.ts'),
103+
vuetifyOptions: {
104+
icons: {
105+
defaultSet: 'mdi-svg',
106+
},
107+
theme: {
108+
themes: {
109+
light: {
110+
colors: {
111+
primary: '#020420',
112+
secondary: '#00DC82',
113+
background: '#fff',
114+
},
115+
},
116+
},
117+
},
118+
defaults: {
119+
VBtn: { color: 'secondary', variant: 'flat', class: 'text-none' },
120+
VAlert: {
121+
VBtn: { color: 'inherit' },
122+
},
123+
VFooter: {
124+
VBtn: { color: 'inherit' },
125+
},
126+
},
127+
},
104128
})
105129

106130
// Expose module options to app config

src/runtime/vuetify.config.ts

-27
This file was deleted.

0 commit comments

Comments
 (0)