DEV Community

Discussion on: Adding Tailwind CSS to Nuxt 3 πŸƒ (2023)

Collapse
 
alexkougianos profile image
Alex Kougianos

Hello and thank you for the tutorial. Do you know about prettier-plugin-tailwindcss and how to get it to work with nuxt?

Collapse
 
tao profile image
Lewis Lloyd • Edited

Yes! Run yarn add --dev prettier-plugin-tailwindcss and it should work automatically thanks to Prettier's autoloading convention.

If it doesn't, create a .prettierrc as such:

{
  "plugins": ["prettier-plugin-tailwindcss"]
}
Enter fullscreen mode Exit fullscreen mode