Migrate to Nuxt 3 and Vuetify 3

This commit is contained in:
2022-11-06 22:55:59 +01:00
parent eecb8156ab
commit 7784ca4e43
11 changed files with 9586 additions and 24058 deletions

57
plugins/vuetify.ts Normal file
View File

@@ -0,0 +1,57 @@
import { createVuetify, ThemeDefinition } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import '@mdi/font/css/materialdesignicons.css'
const myCustomDarkTheme: ThemeDefinition = {
dark: true,
colors: {
background: '#0A192F',
backgroundSecondary: '#112240',
primary: '#64FFDA',
/* accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3 */
}
// Bert
/* dark: {
background: '#0B0C10',
primary: '#66FCF1',
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
},
// Nuxt Default
dark: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
}, */
}
export default defineNuxtPlugin(nuxtApp => {
const vuetify = createVuetify({
components,
directives,
theme: {
// customVariables: ['~/assets/variables.scss'],
defaultTheme: 'myCustomDarkTheme',
// options: { customProperties: true },
themes: {
myCustomDarkTheme,
}
}
})
nuxtApp.vueApp.use(vuetify)
})