NuxtN
Nuxt11mo ago
88 replies
EmanueleDB

Nuxt UI 2.21.1 migration to v 3.0.0

I'm trying to migrate Nuxt Ui from version 2.21.1 to version 3.0.0, but I get some errors.

I'm running Nuxt 3.16 and my current implementation is

/app/assets/css/tailwind.css

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  @apply font-montserrat;
}

/*Fonts*/

@layer utilities {
  .font-montserrat {
    font-family: Montserrat, sans-serif;
  }
}
@layer utilities {
  .font-inconsolata {
    font-family: Inconsolata, monospace;
  }
}

/*Typography*/

@layer base {
  h1 {
    @apply text-xl font-semibold lg:text-3xl;
  }
  h2 {
    @apply text-lg font-semibold lg:text-2xl;
  }
  h3 {
    @apply text-base font-semibold lg:text-xl;
  }
  h4 {
    @apply text-sm font-semibold lg:text-lg;
  }
  p {
    @apply text-sm font-normal lg:text-base;
  }
}
Was this page helpful?