import tailwindcss from '@tailwindcss/vite'

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  extends: ['@layers/ux'],
  modules: ['@nuxt/ui', '@nuxt/image', '@nuxt/fonts', '@nuxt/icon'],
  css: ['./app/assets/css/main.css'],
  ui: {
    colorMode: false,
  },
  app: {
    pageTransition: { name: 'page', mode: 'out-in' },
  },
  fonts: {
    providers: {
      google: false,
      googleicons: false,
      // bunny: false,
      fontshare: false,
      fontsource: false,
      adobe: false,
    },
  },
  icon: {
    provider: 'none',
    fallbackToApi: false, // TODO
    clientBundle: {
      scan: true,
      includeCustomCollections: true,
      icons: [
        'uil:whatsapp',
        'lucide:heart-handshake',
        'lucide:heater',
        'lucide:wifi',
        'lucide:car-front',
        'lucide:lock',
        'lucide:flame-kindling',
        'lucide:mountain',
        'lucide:cable-car',
        'lucide:id-card-lanyard',
        'lucide:bed',
        'lucide:trees',
        'lucide:store',
        'lucide:snowflake',
        'lucide:bike',
        'lucide:coins',
        'lucide:users',
        'lucide:scaling',
        'lucide:bed-double',
        'lucide:sofa',
        'lucide:shower-head',
        'lucide:toilet',
        'lucide:tv',
        'lucide:microwave',
        'lucide:bubbles',
        'lucide:coffee',
        'lucide:layers',
        'lucide:wind',
        'lucide:sun',
        'heroicons:home',
        'heroicons:bars-3',
        'heroicons:x-mark',
        'heroicons:map-pin',
        'heroicons:envelope',
        'heroicons:phone',
        'lucide:arrow-right',
        'lucide:arrow-left',
        'lucide:loader-circle',
        'heroicons:paper-airplane',
      ],
      // clientBundle: { // TODO check this out sometime
      //   scan: {
      //     globInclude: ['components/**/*.vue', /* ... */],
      //     globExclude: ['node_modules', 'dist', /* ... */],
      //   },
      // },
    },
  },
  // vite: {
  //   plugins: [tailwindcss()],
  // },
})
