mirror of https://github.com/nocodb/nocodb
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.
35 lines
796 B
35 lines
796 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' |
|
|
|
const ncLightTheme: ThemeDefinition = { |
|
dark: false, |
|
colors: { |
|
'background': '#FFFFFF', |
|
'surface': '#FFFFFF', |
|
'primary': '#1348ba', |
|
'secondary': '#03DAC6', |
|
'secondary-darken-1': '#018786', |
|
'error': '#B00020', |
|
'info': '#2196F3', |
|
'success': '#4CAF50', |
|
'warning': '#FB8C00', |
|
}, |
|
} |
|
|
|
export default defineNuxtPlugin((nuxtApp) => { |
|
const vuetify = createVuetify({ |
|
components, |
|
theme: { |
|
defaultTheme: 'ncLightTheme', |
|
themes: { |
|
ncLightTheme, |
|
}, |
|
}, |
|
}) |
|
nuxtApp.vueApp.use(vuetify) |
|
})
|
|
|