import { createVuetify } from 'vuetify'
import 'vuetify/styles'
import { aliases, fa } from 'vuetify/iconsets/fa'
import { mdi } from 'vuetify/iconsets/mdi'
import '@fortawesome/fontawesome-free/css/all.css'
import '@mdi/font/css/materialdesignicons.css'
import {fr} from 'vuetify/locale'

export default defineNuxtPlugin(nuxtApp => {
    const vuetify = createVuetify({
        ssr: true,
        locale: {
            locale: 'fr',
            messages: { fr }
        },
        theme: {
            defaultTheme: 'otLightTheme',
            themes: {
                otLightTheme: {
                    dark: false,
                    colors: {
                        'ot-green': '#00ad8e',
                        'ot-light-green': '#a9e0d6',
                        'ot-dark-grey': '#324150',
                        'ot-dark-grey-hover': '#2c3a48',
                        'ot-grey': '#777777',
                        'ot-header-menu': '#ECE7E5',
                        'ot-light-grey': '#f5f5f5',
                        'ot-super-light-grey': '#ecf0f5',
                        'ot-danger': '#f56954',
                        'ot-success': '#00a65a',
                        'ot-warning': '#f39c12',
                        'ot-info': '#3c8dbc',
                        'ot-menu-color': '#b8c7ce',
                        'ot-content-color': '#ecf0f4',
                        'ot-border-menu': '#f4f4f4',
                        'ot-white': '#ffffff',
                        'ot-black': '#000000'
                    }
                }
            },
        },
        icons: {
            defaultSet: 'fa',
            aliases,
            sets: {
                fa,
                mdi
            }
        },
    })
    nuxtApp.vueApp.use(vuetify)
})
