多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
648 B

import type { ThemeDefinition } from 'vuetify'
import { createVuetify } from 'vuetify'
import { defineNuxtPlugin } from 'nuxt/app'
// todo: exclude unused components
// Import everything
import * as components from 'vuetify/components'
import { themeColors } from '~/utils/colorsUtils'
const ncLightTheme: ThemeDefinition = {
dark: false,
colors: themeColors,
}
export const createVuetifyPlugin = () =>
createVuetify({
components,
theme: {
defaultTheme: 'ncLightTheme',
themes: {
ncLightTheme,
},
},
})
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(createVuetifyPlugin())
})