Capital/plugins/vuetify.ts

50 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-07-02 15:07:22 +00:00
import '@mdi/font/css/materialdesignicons.css'
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import { md3 } from "vuetify/blueprints"
import * as components from "vuetify/components"
import * as labsComponents from "vuetify/labs/components"
import * as directives from "vuetify/directives"
export default defineNuxtPlugin((app) => {
const vuetify = createVuetify({
ssr: true,
blueprint: md3,
directives,
components: {
...components,
...labsComponents,
},
theme: {
defaultTheme: "light",
2024-07-02 15:07:22 +00:00
themes: {
light: {
colors: {
primary: "#4a5099",
secondary: "#2196f3",
accent: "#009688",
error: "#f44336",
warning: "#ff9800",
info: "#03a9f4",
success: "#4caf50",
},
},
dark: {
dark: true,
2024-07-02 15:07:22 +00:00
colors: {
primary: "#4a5099",
secondary: "#2196f3",
accent: "#009688",
error: "#f44336",
warning: "#ff9800",
info: "#03a9f4",
success: "#4caf50",
},
},
},
},
})
app.vueApp.use(vuetify)
})