Install tailwindcss, postcss, and autoprefixer.

Initialize Tailwind

Add the code below to your nuxt.config.ts file

Replace the content array in your tailwind config file with this

Create a CSS file, preferably under ./assets/styles/main.css, and add the @tailwind directives for each of Tailwind’s layers.

Add the css file to the css array in your nuxt.config.ts file.

You can now start your build process with npm run dev

Categorized in:

Tagged in:

,