import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import '@mdi/font/css/materialdesignicons.css'
import { aliases, mdi } from 'vuetify/iconsets/mdi'

export default createVuetify({
  components,
  directives,
  defaults: {
    VBtn: {
      rounded: 'md',
    },
    VTextField: {
      variant: 'outlined',
      density: 'comfortable',
      color: 'primary',
    },
    VTextarea: {
      variant: 'outlined',
      density: 'comfortable',
      color: 'primary',
    },
    VSelect: {
      variant: 'outlined',
      density: 'comfortable',
      color: 'primary',
    },
    VAlert: {
      variant: 'tonal',
      border: 'start',
    },
    VCard: {
      rounded: 'lg',
    },
  },
  theme: {
    defaultTheme: 'light',
    themes: {
      light: {
        dark: false,
        colors: {
          primary: '#1C652F',
          'primary-darken-1': '#10421E',
          secondary: '#5A6A5E',
          accent: '#B7E36B',
          background: '#F5F8F2',
          surface: '#FFFFFF',
          'surface-variant': '#F1F4EE',
          success: '#2E7D32',
          warning: '#B7791F',
          error: '#C0392B',
          info: '#2F6FB3',
        },
      },
      dark: {
        dark: true,
        colors: {
          primary: '#5FB968',
          'primary-darken-1': '#4EA758',
          secondary: '#B6BEC8',
          accent: '#B7E36B',
          background: '#0E1115',
          surface: '#161A20',
          'surface-variant': '#1B2028',
          success: '#5FB968',
          warning: '#D0A34E',
          error: '#E07A7A',
          info: '#6AA8DE',
        },
      },
    },
  },
  icons: {
    defaultSet: 'mdi',
    aliases,
    sets: {
      mdi,
    },
  },
})
